theideabulb
asked on
Need to grab this one section of text
I have a bunch of URLs that look like this:
http://mysite.com/en-US/common/fragment/countrySelector.jsp
I really just want to grab this part... US
So there may be links like this
http://mysite.com/en-CA/common/fragment/countrySelector.jsp
http://mysite.com/en-NL/common/fragment/countrySelector.jsp
http://mysite.com/en-DE/common/fragment/countrySelector.jsp
I just want to find the CA, NL, DE
Can someone help with this?
http://mysite.com/en-US/common/fragment/countrySelector.jsp
I really just want to grab this part... US
So there may be links like this
http://mysite.com/en-CA/common/fragment/countrySelector.jsp
http://mysite.com/en-NL/common/fragment/countrySelector.jsp
http://mysite.com/en-DE/common/fragment/countrySelector.jsp
I just want to find the CA, NL, DE
Can someone help with this?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Glad I could help!