Regular Expressions 101

Community Patterns

123...6

Common Separated Values

1

Regular Expression
PCRE2 (PHP >=7.3)

/
\A[^,]*(?=,)[^,]*(?=,)|(?<=,)[^,]*|[^,]+\Z
/
gm

Description

Parse common separated value

Submitted by Iulian Fecioru - 23 days ago