Renamed variable for clarity. Exporting useful regexes.

Exporting regular expressions for re-use outside of names.
Renamed user validPart for clarity and reusability.
I think this should probably be validCharmURLRegEx.
I think it should also appear above all the component parts. I found it much easier to understand what each regex represents when I saw the whole thing then the snippets