in reply to Re^2: Regex to get file name from the path with spaces
in thread Regex to get file name from the path with spaces
Maybe you can think of your capture problem in a different way then. Most likely, you want everything after the last "path separator" up until the double quotes:
TEXT:\s+".*?[\\/]([^\\/"]+)"
The filename can contain everything except a path separator (\ or /) and double quotes, and must be followed by double quotes.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Regex to get file name from the path with spaces
by szpt9m (Novice) on Sep 08, 2021 at 08:56 UTC | |
Re^4: Regex to get file name from the path with spaces
by szpt9m (Novice) on Sep 08, 2021 at 08:45 UTC | |
by choroba (Cardinal) on Sep 08, 2021 at 09:53 UTC |
In Section
Seekers of Perl Wisdom