Regular Expressions 101

Community Patterns

1...56789...902

Community Library Entry

1

Regular Expression
PCRE2 (PHP >=7.3)

/
(?m)^(?:[^,]+,){2}
/
g

Description

In a .csv file where every field is quoted (for whatever reason) select the first two columns

Submitted by anonymous - 3 months ago