Regular Expressions 101

Community Patterns

There does not seem to be anything here

Community Library Entry

1

Regular Expression
Python

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

Description

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

Submitted by rugk - 9 years ago