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

Add a document that describes differences with other regex engines #497

Open
BurntSushi opened this issue Jul 3, 2018 · 2 comments
Open

Comments

@BurntSushi
Copy link
Member

BurntSushi commented Jul 3, 2018

On mobile, but here's a start:

  • The impact of "unicode by default." E.g., character classes and word boundaries.
  • Definition of line terminators.
  • Duplicate capture group names.
  • Legality of empty expressions.
  • Alternation match precedence, e.g., leftmost first (Perl) vs leftmost longest (POSIX).
  • Lack of certain features found in backtracking engines.
  • Class set operations.
  • Inconsequential escapes are not allowed.
  • Differences between match semantics of ^/$.
  • Less strictness on nonsensical repetitions. See Stricter syntax around repeat modifiers #765.
@Absolucy
Copy link

Absolucy commented Dec 9, 2020

Are duplicate capture group names still unsupported? ?(J) would be very useful for trying to merge several different subcases without straight up checking against multiple regexes

@BurntSushi
Copy link
Member Author

Yes, they are still unsupported.

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

No branches or pull requests

2 participants