ors/\s+/:/g
\s = space-like things, like tabss/[ ]+/:/g
You might want to have a look at perldoc perlre. What you have matches anything (".") twice and then one or more spaces, replacing them all with a colon.
--
Allolex
Update: I updated this page a whole lot of times, adding more and more info each time. Silly, isn't it?
In reply to Re: simple regex problem
by allolex
in thread simple regex problem
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |