Regex quantifiers not working as expected #89
Replies: 2 comments 1 reply
-
@ovidiuchirca Thanks for this! It was due to a bug which has been fixed here: #88 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks for the reply!
One more thing: is there a way to "trim" the spaces in the filename? I mean
not to remove completely, but to reduce more than one consecutive space to
one space.
I try f2 -f '[ ]{2,}' -r ' ' but it completely removes the spaces...
…On Fri, Nov 22, 2024 at 10:40 PM Ayooluwa Isaiah ***@***.***> wrote:
@ovidiuchirca <https://github.com/ovidiuchirca> Thanks for this! It was
due to a bug which has been fixed here: #88
<#88>
—
Reply to this email directly, view it on GitHub
<#89 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AITNPO3VUV4JNHM4Y3LL3332B6JDNAVCNFSM6AAAAABSELWFUGVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCMZVGMZDAMI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I came across some problem trying the examples from the tutorial.
Precisely, when I try this:
f2 -f '[ ]{1,}' -r '_'
with one file named "Screenshot from 2022-04-12 14:37:35.png" like in the tutorial,
the quantifier is not working, I get the message "the search criteria didn't match any files".
The problem is with "one or more" quantifier, I have tried {1} for exactly one and it worked perfectly.
{1,5} doesn't work either
Am I missing something?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions