"this hasonlyonespace" => "this hasonlyonespace"
How about:
$line =~ s/\s+/ /g; $line =~ s/ /:/ for (1,2);
-Blake
In reply to Re: Re: simple regex problem
by blakem
in thread simple regex problem
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |