Regular Expressions 101

Community Patterns

csv split, accounting for 'sub-csv' groups inside brackets

2

Regular Expression
PCRE (PHP <7.3)

/
[,](?![^(]*\))
/
g

Description

This came up as a need for splitting a url param into an array ofr stings, where such a string may be a sublist contained within a bracket pair

Submitted by Martin Renvoize - 8 years ago