Renamed variable for clarity. Exporting useful regexes.

Exporting regular expressions for re-use outside of names.
Renamed user validPart for clarity and reusability.
Making one var block here would also be beneficial.