Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
(\w+?)(?:(,)|$)
/
g

Description

Separates Items in a list which is separated by a comma

Submitted by anonymous - 6 years ago