Renamed variable for clarity. Exporting useful regexes.

Exporting regular expressions for re-use outside of names.
Renamed user validPart for clarity and reusability.
Can we please merge this var block with the previous?