in reply to Regexp match filename, exclude path
Your try, \\.+?\.pdf matches:
I think what you would want, instead of matching As little anything as is possible, nongreedy you want Anything except a backslash.
More likely, you just want basename from File::Basename.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Regexp match filename, exclude path
by cormanaz (Deacon) on Oct 04, 2008 at 17:48 UTC | |
by Corion (Patriarch) on Oct 04, 2008 at 17:58 UTC |