Regular Expressions 101

Community Patterns

the end of file paragraph should have a closing </p>

0

Regular Expression
PCRE2 (PHP >=7.3)

/
<p>(\s?]]><\/footer> <\/content>)
/
gm

Description

  • the end of file paragraph should have a closing </p>
  • should be used after regex2 to remove <p> at the end
Submitted by anonymous - 2 years ago