perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John ORourke <john-modp...@o-rourke.org>
Subject Re: [OT]Re: RegEx Hell
Date Tue, 31 Jan 2006 17:20:30 GMT
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
>  
>


Mime
View raw message