in reply to RE: Re: Removing a text element from the middle of a string
in thread Removing a text element from the middle of a string
(Though if merlyn rants against .*, I'd be interested in seeing the link)
Incidentally, I'd write the regex as follows (assuming that the data is very clean):
Cheers,my $result = $1 if $string =~ /,\s([^,]+)/;
Update: japhy, it's an easy mistake to make. I just feel proud to have made the list :)
Join the Perlmonks Setiathome Group or just go the the link and check out our stats.
|
|---|