-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Regex tester fails with optional group #1388
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
Comments
Hi @gineer01 and @CorentinTh, fixed in #1391, thanks for your bug report |
Hi, for people interested in up to date version of it-tools, I made kind of a fork here : https://github.com/sharevb/it-tools (https://sharevb-it-tools.vercel.app/ and docker images https://github.com/sharevb/it-tools/pkgs/container/it-tools) |
I have what I think is the same issue, but with what is arguably an easier regex to look at. The regex:
should match:
but does not. |
Hi @chrislea and @gineer01 , fixed in my fork https://sharevb-it-tools.vercel.app/regex-tester?regex=anything And for people interested in up to date version of it-tools, I made kind of a fork here : https://github.com/sharevb/it-tools (https://sharevb-it-tools.vercel.app/ and docker images https://github.com/sharevb/it-tools/pkgs/container/it-tools) |
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
Testing
\s([^\s\[]+)(?:\[(\d+)\])?:\s
against this input:It shows no match.
What happened?
It seems the regex tester fails with the second line for some reason:
Nov 11 21:03:26 abc2 def.sh[1]:
, which is correct.Expected output (try https://regex101.com/ for example): 2 matches (the
[1]
part is optional in the regex)System information
Firefox
Where did you encounter the bug?
A self hosted
The text was updated successfully, but these errors were encountered: