We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Here is an example that doesn't works when importing Text.RE.PCRE.String.
Text.RE.PCRE.String
I want to add commas , into a string of digits, separating it every three digits from right to left. The code snippet is as follows:
,
ghci> "12345678" *=~/ [ed|(?<=\d)(?=(\d\d\d)+$)///,|] "12,345678" ghci> "12345678" ?=~/ [ed|(?<=\d)(?=(\d\d\d)+$)///,|] "12,345678"
Here (*=~/) works the same as (?=~/). For the multiple replacement, it should be "12,345,678".
(*=~/)
(?=~/)
"12,345,678"
More examples:
ghci> "1a2a3a" *=~/ [ed|(?=a)///,|] "1,a2a3a" ghci> "1a2a3a" *=~/ [ed|(?<=a)///,|] "1a,2a3a"
This may be a bug. Please check it. Thanks!
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Here is an example that doesn't works when importing
Text.RE.PCRE.String
.I want to add commas
,
into a string of digits, separating it every three digits from right to left. The code snippet is as follows:Here
(*=~/)
works the same as(?=~/)
. For the multiple replacement, it should be"12,345,678"
.More examples:
This may be a bug. Please check it. Thanks!
The text was updated successfully, but these errors were encountered: