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

anythingBut("abb") does not generate correct result when more than 1 character #55

Open
Miglecz opened this issue Aug 3, 2016 · 2 comments

Comments

@Miglecz
Copy link

Miglecz commented Aug 3, 2016

Actually generated: (?:[^abb]*)
Expected to be generated: (?:a(?!bb)|[^a])+
or something like that.

@lanwen
Copy link
Contributor

lanwen commented Aug 9, 2016

can you provide complete example on how it should work?

@Maaartinus
Copy link

I guess, the OP interprets anythingBut("abb") as any character, but not looking at "abb", and the thing repeated, i.e., (?:(?!abb)(?s:.))+ which is equivalent to his expression (modulo mistakes I may have done), but doesn't make much sense to me.

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

3 participants