Perl: the Markov chain saw | |
PerlMonks |
Re: Regex to get file name from the path with spacesby Corion (Patriarch) |
on Sep 08, 2021 at 07:48 UTC ( [id://11136555]=note: print w/replies, xml ) | Need Help?? |
Maybe you want to instead capture everything up to the second double quote?
If you have both, lines with and lines without double quotes, you will have to show more data. Update: After reading haukex answer, I now realize that I only understood half of your question. Use my answer to extract the full path and then use File::Spec to get the actual filename.
In Section
Seekers of Perl Wisdom
|
|