I'm trying to add state information on a site based on the IP address of the user. So if you're IP is form California, it will show California on the website.
I'm getting the data back in a string that looks like this:
Country: UNITED STATES (US) City: Los Angeles, CA IP: XX.XXX.XXX.XX
I want to just parse out the CA part. Can anyone tell me what the most efficient way of doing this is?
Thanks!