Community Patterns

Community Library Entry

0

Regular Expression
Created·2016-10-17 18:47
Flavor·PCRE (Legacy)

/
( \( # Match all but characters `\`, `(` or `)` (?> [^\\()] | \\. | (?1) )* \) )
/
gx
Open regex in editor

Description

Escaped characters should be ignored, hence \( and \) should not affect braces.

Submitted by anonymous