-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Regular Expressions: replacing empty patterns only works correctly in nre #9306
Labels
Comments
Endless loops are just as fine here IMO, garbage in, garbage out. |
I ended up on
|
I didn't follow. |
Neither the empty string nor zero-length matches are garbage. |
Closed
krux02
pushed a commit
to krux02/Nim
that referenced
this issue
Oct 15, 2018
krux02
pushed a commit
to krux02/Nim
that referenced
this issue
Oct 15, 2018
narimiran
pushed a commit
to narimiran/Nim
that referenced
this issue
Oct 31, 2018
narimiran
pushed a commit
to narimiran/Nim
that referenced
this issue
Oct 31, 2018
narimiran
pushed a commit
to narimiran/Nim
that referenced
this issue
Nov 1, 2018
narimiran
pushed a commit
to narimiran/Nim
that referenced
this issue
Nov 1, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using nre:
produces:
as expected.
Using re instead:
each
replace
ends in an infinite loop.And @nitely's Module regex
produces:
which doesn't make much sense... But this is not a Nim issue.
The text was updated successfully, but these errors were encountered: