I have a string(as a general one) $string = ".co.uk/Jobs/Company-Sector/C8A6446X4PND86M9WYJ/Tradewind/?APath=2.21.0.0.0". Here I need to extract the "Tradewind". How can i extract the text at the same position(as there is not only Tradewind & there are more). I need a general regex solution which can extract the text of the same position of Tradewind.