Regular Expressions 101

Community Patterns

CSV : Match values with carriage return

1

Regular Expression
PCRE (PHP <7.3)

/
(?<=;)"(([^;]?)([\r\n]?))+"(?![1-9;])
/
g

Description

Use with csv with ";" delim. Matches values that contains carriage return not surrounded by double quotes.

Submitted by anonymous - 8 years ago