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

Cannot parse Unicode ranges after question mark as in " ?[\p{L}]+" #305

Closed
iboB opened this issue Apr 25, 2024 · 3 comments
Closed

Cannot parse Unicode ranges after question mark as in " ?[\p{L}]+" #305

iboB opened this issue Apr 25, 2024 · 3 comments

Comments

@iboB
Copy link

iboB commented Apr 25, 2024

A regular expression of the form "something, question mark, range or Unicode chars" is not parsed correctly.

As seen in the example: https://gcc.godbolt.org/z/41ea8anqT

  • [\p{L}]+|[\p{N}]+ - works
  • ?\p{L}+| ?\p{N}+ - works
  • ?[\p{L}]+| ?[\p{N}]+ - doesn't compile even though it's valid
@hanickadot
Copy link
Owner

It should be fixed now

@hanickadot
Copy link
Owner

Thanks for reporting!

@iboB
Copy link
Author

iboB commented Apr 26, 2024

Thanks!

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