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
Testing \s([^\s\[]+)(?:\[(\d+)\])?:\s against this input:
\s([^\s\[]+)(?:\[(\d+)\])?:\s
Nov 11 21:03:26 abc2 def.sh[1]: Nov 11 21:03:26 abc2 def.sh:
It shows no match.
It seems the regex tester fails with the second line for some reason:
Nov 11 21:03:26 abc2 def.sh[1]:
Expected output (try https://regex101.com/ for example): 2 matches (the [1] part is optional in the regex)
[1]
Firefox
A self hosted
The text was updated successfully, but these errors were encountered:
fix(regex tester): optional groups/captures failing
11c0ac7
Fix CorentinTh#1388
Hi @gineer01 and @CorentinTh, fixed in #1391, thanks for your bug report
Sorry, something went wrong.
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)
CorentinTh
Successfully merging a pull request may close this issue.
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: