Update to use REGEX patterns.

Compiling regex every time someone tries to register is not a good idea, not very efficient. Regex compilation, especially a string that long takes computational power.