Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
Created·2025-12-11 12:04
Flavor·PCRE2 (PHP)

/
^ (?: "((?:[^"]|"")*)" # Quoted field, capture inner content | ([^",]*) # Unquoted field, capture content (no comma or quote) ) $
/
x
Open regex in editor

Description

Extract field value of DoubleQuote Enclosed CSV Field with Escaped DoubleQuote The matching field value still contains escaped double quotes to be later processed :-)

Submitted by Alper YAZGAN