I E's, I want to get the name of sub-domain, and at the same time verify if the sub-domain is well written.
The sub-domains just can contain 2 alpha characters, like pt, es, en, it etc.
In practice if I have this domains:
The output should be pt, es or en, and the configuration of 'sub-domain' was correct.
Note: the only thing I want to know it was the configuration of sub-domain, not the entirely URL.
So, How I get sub-domain acronym and how I see if sub-domain have 2 alpha characters?