in reply to Re: Regex operation optimisation
in thread Regex operation optimisation
Odd. I would have done
- replace continuous white spaces with a single underscore
$string =~ s/\s+/\_/g;
The question I have; is it simple preference or is there a technical reason you use the /s approach?
I sense an opportunity for me to learn something, Obi Wan .
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Regex operation optimisation
by jwkrahn (Abbot) on Jul 02, 2010 at 23:36 UTC | |
by marinersk (Priest) on Jul 06, 2010 at 21:05 UTC |