in reply to Re: simple regex problemin thread simple regex problem
"this hasonlyonespace" => "this hasonlyonespace"
How about:
$line =~ s/\s+/ /g; $line =~ s/ /:/ for (1,2); [download]
-Blake