Regular Expressions 101

Community Patterns

Excel CSV Parser

1

Regular Expression
ECMAScript (JavaScript)

/
("[^"]+")|[^(?!"|,)\n][^,|\n]*|,(?=\n)|\n(?=,)|,(?=,)|,(?=$)
/
gm

Description

I'm dealing quite a lot w this. This CSV Parser is used for Js (particularly for my current project wrting script for After Effects through ExtendScript)

Submitted by binguine - 5 months ago