Renamed variable for clarity. Exporting useful regexes.

Exporting regular expressions for re-use outside of names.
Renamed user validPart for clarity and reusability.
Also I think it belongs in the same var block as the snippets above