-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
For instance, the construct index:
^(.*?)/_type='Subscript'
\n(?:\1.+\n)*?\1/lineno=(?P<LINE>\d+)
\n(?:\1.+\n)*?\1/slice/_type='Index'... could be expressed as:
^(.*?)/_type='Subscript'
(?(DEFINE)(?P<sq>\n(?:\1.+\n)*\1))
(?&sq)/lineno=(?P<LINE>\d+)
(?&sq)/slice/_type='Index'To further mute the regex noise, the definition could be injected dynamically after the first closing parens.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels