in reply to How can I extract part of a string after a specific character
Here's two ways:
my $str = 'TITLE=SPECIAL CASE 1' ; # Using a regexp... $str =~ /^(.*?)=(.*?)$/ ; my $match = $2 ; print "Matched: [$match]\n" ; # Using split... my ( $before, $after ) = split '=', $str ; print "Matched: [$after]\n" ;
_______________
D a m n D i r t y A p e
Home Node | Email
In Section
Seekers of Perl Wisdom