I have three string types: 'en-ae.sssports.com','amazon.co.uk','farfetch.com'
I require the client name i.e. Sssports, Amazon, Farfetch from each.
Had tried using regexp '(?:.)[^.]*(?:.)' to extract string between the two dots but I require a dynamic code that extracts data from all three sting types.