Perl-Sensitive Sunglasses | |
PerlMonks |
Re: simple regex problemby allolex (Curate) |
on Mar 06, 2003 at 22:55 UTC ( [id://241025]=note: print w/replies, xml ) | Need Help?? |
or \s = space-like things, like tabs + = one or more [ ] = just a normal space 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.
-- Update: I updated this page a whole lot of times, adding more and more info each time. Silly, isn't it?
In Section
Seekers of Perl Wisdom
|
|