Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
(?:^|\,{1,})(foobar)(?:$|\,{1,})
/
g

Description

Search for foobar in a csv string

Submitted by Balmark - 9 years ago