Regular Expressions 101

Library entries

Regular expression capture group captures — separate group names for captured/non-captured

Vote

0

Regular Expression
javascript

/
(?<!(?:\\{2})*\\)(?:(?<begin_capture>[\(])(?<begin_capture_modifier>(?=[<][a-z_A-Z]+[>])|(?!\?(?:<?[=!]|:)))|(?<begin_non_capture>\((?=\?(?:<?[=!]|:))))|(?:(?<end>\)))
/
gm

Description

Loading markdown...
Submitted by anonymous - a year ago