in reply to Not matching REGEX

FunkyMonk points out the problem, I'll point out a minor improvement...

You can actually put those all together in one RegEx like so

$str =~ /nb[dk][A-z0-9]{4}|root/;
Which should be quite a bit more efficient than 3 regexes.

                - Ant
                - Some of my best work - (1 2 3)

Replies are listed 'Best First'.
Re^2: Not matching REGEX
by cutter (Acolyte) on Aug 30, 2007 at 18:40 UTC
    Thanks. I'm just happy I got the hash of hashs to work that triggered this problem. Now a improved REGEX, whee.