Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
(^(?:[^,\n]+,\s*){8})([^;\n]+)
/
gm

Description

Regular expression created to separate CSV fields that are separated by commas with the end stopper with a semicolon

Submitted by João Paulo Dias - 6 years ago