Skip to content
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

Open
ssent1 opened this issue Sep 9, 2020 · 1 comment

Comments

@ssent1
Copy link

ssent1 commented Sep 9, 2020

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)

@ibudiselic
Copy link
Collaborator

ibudiselic commented Sep 17, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants