in reply to splitting headache
or something the like.my @result = $string =~ /^([^\.]\.[^\.])(:?\.([^\.]))*$/;
Or use split and some after-working:
my ($firstPart, @result) = split(/\./, $string); $result[0] = $firstPart . "." . $result[0];
Best regards,
perl -le "s==*F=e=>y~\*martinF~stronat~=>s~[^\w]~~g=>chop,print"
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: splitting headache
by Wibble (Beadle) on Feb 26, 2002 at 14:45 UTC |