Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
Created·2016-09-12 09:17
Flavor·PCRE (Legacy)

/
(?:\s*(?:\"((?:[^\"]|\"\"|\\\")*)\"|\"([^\"]*)\"|([^,\r\n]+))\s*(?:,|[\r\n])?)+?
/
g
Open regex in editor

Description

Respects both "double-double" and "escaped doublequote" quotes in quotes. Respects newlines in quoted strings and as line-separators.

(see also RFC-4180)

Submitted by aes