I will be receiving list of url daily. And in those urls two letters country code will be present like uk, no, fr, de
Sample urls are like below
www.abc.com.uk/services
www.prices.com/de-de (in this case first de is language and second is country)
www.customers.com/fr-fr/services
So that two letter country code always change its position. How can I get that two letter country code from these types of random urls using java without hardcoding all country codes and check one by one ?
Any Ideas please...!