Evaluate preg_replace regular expression matching $ Body = 'subtitle # e #
"Sancheon Ling" is a publisher in Guangzhou and his real name is Li Ling. The pen name named "Sanchuan Ling" is used to commemorate the scenery in his hometown. I graduated from South China Normal University and worked as a journalist and editor for ten years in a magazine. I used to be one of the hot pushing pushes of health books. Like many working mothers, when she gave birth to her daughter six years ago, she began to pay attention to parenting issues and work in the publishing of children's books.
# P # never follow the big stream # e #
In a word, we should give priority to me and serve me with a service attitude. we should never follow the big stream, never go beyond our own economic capabilities, and never hold the magical attitude of early education, blindly choose an early education institution.
# P # assault learning for further studies # e #
Fast-paced course before admission: for further studies, assault learning
With the increasing age of meatballs, I quickly found that there is a category ~ Early education classes for 6-year-olds are booming.
';
$ Body = preg_replace ('regularize', '', $ body );
Echo $ body;
// This is the content in DEDECMS. now I want to create a page for reading the full text, that is, this page is not paginated, and all the page tags in the content should be gone, the tags to be removed mainly include:
// 1. Mark "subtitle # e #" on the first page #"
// 2. Mark "# p # Do not follow the large stream # e #" in the middle of the page #"
// Note: # e # is the title, # p # Is the page, and the deletion also includes the # e # and # p # Characters.
?>
Reply to discussion (solution)
$ Body = 'subtitle # e #"Sancheon Ling" is a publisher in Guangzhou and his real name is Li Ling. The pen name named "Sanchuan Ling" is used to commemorate the scenery in his hometown. I graduated from South China Normal University and worked as a journalist and editor for ten years in a magazine. I used to be one of the hot pushing pushes of health books. Like many working mothers, when she gave birth to her daughter six years ago, she began to pay attention to parenting issues and work in the publishing of children's books.
# P # never follow the big stream # e #In a word, we should give priority to me and serve me with a service attitude. we should never follow the big stream, never go beyond our own economic capabilities, and never hold the magical attitude of early education, blindly choose an early education institution.
# P # assault learning for further studies # e # Fast-paced course before admission: for further studies, assault learning
With the increasing age of meatballs, I quickly found that there is a category ~ Early education classes for 6-year-olds are booming.
'; $ Body = preg_replace ('/(? : ^ | # P #).*? # E # \ s */s ', '', $ body); echo $ body;
"Sancheon Ling" is a publisher in Guangzhou and his real name is Li Ling. The pen name named "Sanchuan Ling" is used to commemorate the scenery in his hometown. I graduated from South China Normal University and worked as a journalist and editor for ten years in a magazine. I used to be one of the hot pushing pushes of health books. Like many working mothers, when she gave birth to her daughter six years ago, she began to pay attention to parenting issues and work in the publishing of children's books.
In a word, we should give priority to me and serve me with a service attitude. we should never follow the big stream, never go beyond our own economic capabilities, and never hold the magical attitude of early education, blindly choose an early education institution.
Fast-paced course before admission: for further studies, assault learning
With the increasing age of meatballs, I quickly found that there is a category ~ Early education classes for 6-year-olds are booming.
Pretty! Pretty! Pretty!