hi there,
I'm looking to do do two things and i am looking to do them in a beautiful way. I am working on a project that allows users to upload flickr photos by simply entering their flickr image URL. It looks like this: http://www.flickr.com/photos/xdjio/226228060/
i need to:
make sure it is a URL that matches the following format: http://www.flickr.com/photos/%5B0%5D/%5B1%5D/
extract the following part: http://www.flickr.com/photos/xdjio/%5B0%5D/
Now i could very easily write some string methods to do the above but i think it would be messy and love learning how to do these things in regex although not being a regex ninja i am currently unable to do the above.
Any help would be very much appreciated thanks Doug