Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
[\w\s<>]*(?![\w\s<>]*"+.*"+)(trekking)
/
gm

Description

search a WORD iff isn't between two apex. example: attribute="abc WORD abc" abc WORD, 'abc WORD "abc MATCHES: 2nd and 3th WORD

Submitted by White Dragon - 8 years ago