There are much better ways to enforce this validation. Shoot me an email if you'd like any assistance.
Also, https://github.com/dropbox/zxcvbn is amazing.
Also, https://github.com/dropbox/zxcvbn is amazing.
The "offending system" I mentioned, however, is our old PHP application that I don't really work on. (I mainly develop much more modern Rails stuff!)
Like I said, the primary concern of the company is simply to keep pen testers happy - and their criteria for a "secure" website is, in my opinion, often misleading or even downright wrong. But if I ever get the chance to genuinely improve the system, I'll definitely look into using this.