in reply to Re: Regex Question
in thread Regex Question

or just /pass|admin/ if you don't need to know which word was used. Incidently, not using captures greatly speeds up the regexp.

Replies are listed 'Best First'.
Re^3: Regex Question
by diotalevi (Canon) on Jul 12, 2006 at 18:17 UTC

    You're exageratting. It's just a password, not an epic. I would have said /(?:admin|pass)/ but figured I'd just go with the more readable (though slightly penalized) /(admin|pass)/.

    ⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊

      What's wrong with with /admin|pass/? The speed up is just a bonus, not the point.