Re: [OT]Re: RegEx Hell
or $bla=~/([^\/]+)$/; in case the filenames have non-alpha chars or more dots... Tom Schindl wrote: on the other hand: my $bla = "/dir/subdir/file.ext"; $bla =~ /(\w+\.\w+)$/; print $1 . "\n"; # file.ext works perfectly
[OT]Re: RegEx Hell
on the other hand: -8<- my $bla = "/dir/subdir/file.ext"; $bla =~ /(\w+\.\w+)$/; print $1 . "\n"; # file.ext -8<- works perfectly Mark Galbreath wrote: > Close enough to perl, I hope... > > I'm trying to string the filename from