You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use fastparse with a regex that contains backreferences. Here's a very simplified example:
("|')foo\1
However, since Fastparse joins all regexes of one state like (regex1)|(regex2)|(("|')foo\1) the reference to capturing group 1 is now wrong. Instead of ("|') it now references (regex1).
It would be great if fastparse was somehow able to support this.
I guess one option would be to match the regexes separately.
The text was updated successfully, but these errors were encountered:
I'm trying to use fastparse with a regex that contains backreferences. Here's a very simplified example:
However, since Fastparse joins all regexes of one state like
(regex1)|(regex2)|(("|')foo\1)
the reference to capturing group 1 is now wrong. Instead of("|')
it now references(regex1)
.It would be great if fastparse was somehow able to support this.
I guess one option would be to match the regexes separately.
The text was updated successfully, but these errors were encountered: