Regular Expressions 101

Community Patterns

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 - 19 days ago