develooper Front page | perl.beginners | Postings from February 2009

Re: regarding regular expression

Thread Previous | Thread Next
From:
John W. Krahn
Date:
February 26, 2009 23:56
Subject:
Re: regarding regular expression
Message ID:
49A79C94.9060003@shaw.ca
Irfan Sayed wrote:
>  
> Still i am not getting proper result. Here is my code. please help.
>  
> $string = "pqp-un_1.0G_2009-02-23_17-38-09_5678903.txt";
> $string = ( split /\D+/ )[ -1 ];

$string = ( split /\D+/, $string )[ -1 ];

> print "$string\n";



John
-- 
Those people who think they know everything are a great
annoyance to those of us who do.        -- Isaac Asimov

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About