in reply to RegEx ignoring intervening characters?
and then examine what's left? I don't know how to do benchmarking but rather than do a complex regex with lots of stars in it, why not turn the problem inside out?$str =~ tr/A-Z//cd
($_='kkvvttuu bbooppuuiiffss qqffssmm iibbddllffss')
=~y~b-v~a-z~s; print
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: RegEx ignoring intervening characters?
by mdunnbass (Monk) on Feb 01, 2007 at 15:39 UTC |