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:
http://pt/domain.com/ or
http://www.pt/domain.com/
http://es/domain.com/index.php or
http://www.es/domain.com/index.php
http://en/domain.com/index.php?variables or
http://www.en/domain.com/index.php?variables
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?
Regards, JC