in reply to Regex operation optimisation
- remove special characters like (% ,(,),*)
$string =~ tr/%()*//d;
- replace continuous white spaces with a single underscore
$string =~ tr/ /_/s;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Regex operation optimisation
by marinersk (Priest) on Jul 02, 2010 at 21:39 UTC | |
by jwkrahn (Abbot) on Jul 02, 2010 at 23:36 UTC | |
by marinersk (Priest) on Jul 06, 2010 at 21:05 UTC |