Regular Expressions 101

Community Patterns

WORD not between two apex

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