http://qs321.pair.com?node_id=180946


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