Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
Created·2016-01-25 19:15
Flavor·Python

r"
(\n|;|^)"([^";\n]*?)"([^";\n]+?)"([^";\n]*?)"(\n|;|$)
"
g
Open regex in editor

Description

A stable and simple RegEx, which escapes double-quotes (") in a CSV file.

Submitted by rugk