Re: [OT]Re: RegEx Hell

2006-01-31 Thread John ORourke
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

2006-01-31 Thread Tom Schindl
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