Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
<tagname((.|\n)(?!string))*?<\/tagname>
/
igm

Description

get all tags not containing a given string

Submitted by pan4ever - 8 years ago