We're updating the issue view to help you get more done. 

Capture groups ignored if preceded by literal slash

Description

These two patterns were both ignored because the left parenthesis in both cases were preceded by a slash (which is usually the pattern of an escaped parenthesis).

  •  

    1 \\\(?<not-named-group>patt)
  •  

    1 \\(?<named-group>patt)

But the second pattern is actually a valid/non-escaped named capture group because the slash is itself preceded by another slash (making it a literal).

Environment

None

Status

Assignee

TonyT

Reporter

TonyT

Labels

None

Fix versions

Priority

Major