Community Patterns

Community Library Entry

0

Regular Expression
Created·2019-10-08 06:27
Flavor·ECMAScript (JavaScript)

/
(?<!\\)\((\?<(?<name>[\w][\w\d_]+)>|(?=[^\?]))
/
gm
Open regex in editor

Description

Find all capture groups in RegExp source. All forms of None-capture groups are ignored. name of named capture group will be captured by the name "name" which is group[2].

Submitted by anonymous