Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
([^\s,]+.(?!\s)\w*[^,]\b)
/
gi

Description

Matches items displayed in tag format (CSV with spaces, basically).

Submitted by Guy Waldman - 8 years ago