in reply to Not matching REGEX
You can actually put those all together in one RegEx like so
Which should be quite a bit more efficient than 3 regexes.$str =~ /nb[dk][A-z0-9]{4}|root/;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Not matching REGEX
by cutter (Acolyte) on Aug 30, 2007 at 18:40 UTC |