mikedaruke
Technical User
I have a string
$string = 'I_Love_Perl_So_Much';
I want to capture the 'Much' word, or the last match for
_.*?$
I am currently doing
$string =~ m/_(.*?)/;
but it finds _Love_Perl_So_Much
How can I get perl to search from the Left to the Right instead of Right to Left?
Thanks
$string = 'I_Love_Perl_So_Much';
I want to capture the 'Much' word, or the last match for
_.*?$
I am currently doing
$string =~ m/_(.*?)/;
but it finds _Love_Perl_So_Much
How can I get perl to search from the Left to the Right instead of Right to Left?
Thanks