Regular Expressions 101

Community Patterns

Split vertical space CSV with posibility of escaping

1

Regular Expression
PCRE (PHP <7.3)

/
\|(?=(?:[^"]*"[^"]*")*[^"]*$)
/
g

Description

This regex will find all CSV separator that are not escaped

Submitted by anonymous - 8 years ago