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

Switch regex grammar (from POSIX2) to ECMA (for its PERL-style non-greedy ops.) #36

Closed
xparq opened this issue Sep 8, 2023 · 0 comments

Comments

@xparq
Copy link
Owner

xparq commented Sep 8, 2023

The default greediness (the regex always eating its way up to the end of the entire source string, if at all possible) is not always what users want, especially when matching long structured text (like code) consisting of short atoms.

And I haven't seen "greedy" mentioned even once at the extended regex reference page, while it's readily available with ECMA's, per-pattern.

And ECMA is the JS and C++ native regex grammar anyway.

@xparq xparq changed the title Switch regex grammar to ECMA from POSIX2, for non-greedy ops. Switch regex grammar (from POSIX2) to ECMA (for its non-greedy ops.) Sep 8, 2023
@xparq xparq changed the title Switch regex grammar (from POSIX2) to ECMA (for its non-greedy ops.) Switch regex grammar (from POSIX2) to ECMA (for its PERL-style non-greedy ops.) Sep 8, 2023
@xparq xparq closed this as completed in b5e8bee Sep 8, 2023
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

1 participant