Not able to get Regex to get just the filename from the full path working with Vector #1279
Answered
by
pront
harikeshtripathi
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
pront
Feb 19, 2025
Replies: 1 comment
-
|
Parse regex used https://docs.rs/regex/latest/regex/struct.Regex.html#method.capture_names internally and without a name, it will not use the result. If you passed Here's how it works: playground |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
harikeshtripathi
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Parse regex used https://docs.rs/regex/latest/regex/struct.Regex.html#method.capture_names internally and without a name, it will not use the result. If you passed
numeric_groups: true, you would seeHere's how it works: playground