Uploaded image for project: 'named-regexp'
  1. named-regexp
  2. REGEX-6

Capture groups ignored if preceded by literal slash

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.1.8
    • Labels:
      None

      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).

      • \\\(?<not-named-group>patt)
      • \\(?<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).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                tony19 Anthony Trinh [Administrator]
                Reporter:
                tony19 Anthony Trinh [Administrator]
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 day
                  1d

                    Who's Looking?