-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does not recognize non-capturing groups, positive|negative lookahead|lookbehind. #38
Comments
Hello Syd,
No - the tool supports a minimal and thus very limited regular expression
syntax, much like what you find when learning about regular expressions as
a formal system in a University setting.
Cheers,
Ivan
…On Wed, Sep 9, 2020 at 4:18 AM Syd ***@***.***> wrote:
Hi!
Great tool.
Are there simplification rules to cover non-capturing groups, lookahead,
and lookbehind cases?
Here's what I'm running into…
(?# ?: ≡ non-capturing group)
pre-REG === post-REG
([A-G](?:[m♭♯]{1,2})?\(add9\)) ≠ [A-G]?:[m♭♯]{1,2}?\(add9\)
34 matches ≠ no match
(?# Negative|Positive Lookbehind|Lookahead)
pre-REG === post-REG
Negative Lookbehind: (?<!\S)\S+\(add9\) ≠ Error: RegexError is not defined
Negative Lookahead : \S+\(add9\)(?!\S) ≠ Error: RegexError is not defined
Positive Lookahead : \S+(?=\(add9\))\S+ ≠ Error: RegexError is not defined
Positive Lookbehind: \S+(?<=\(add9\)) ≠ Error: RegexError is not defined
34 matches ≠ Error: RegexError is not defined
☛ regex flavour = PCRE (PHP)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#38>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAG243DI65YXQ7KICM6LWDTSE3QXLANCNFSM4RAZWKGA>
.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi!
Great tool.
Are there simplification rules to cover non-capturing groups, lookahead, and lookbehind cases?
Here's what I'm running into…
☛ regex flavour = PCRE (PHP)
The text was updated successfully, but these errors were encountered: