Community Patterns

Community Library Entry

0

Regular Expression
Created·2021-01-28 00:50
Flavor·ECMAScript (JavaScript)

/
,|\((?:[^)(]+|\((?:[^)(]+|\([^)(]*\))*\))*\)
/
gm
Open regex in editor

Description

Find all commas that are not in parenthesis or square brackets.

Submitted by Ben