Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Created·2021-11-05 01:37
Flavor·PCRE2 (PHP)

/
(<footer><!\[CDATA\[)\s?(<p>)?
/
gm
Open regex in editor

Description

In case #3: A <p> should be prepended to the beginning of the first paragraph.

Submitted by anonymous