In the below URL, I am trying to parse out the string everything that appears after "scid=" and "pid=" into 2 different variables. The two numbers associated with pid and scid don't have a fixed number of digits each time (they change). I'm approaching the problem in the following way: find location of "pid=" and parse out the string from after this location until the next "&". How do I do this?
http://oldnavy.gap.com/browse/product.do?cid=78425&vid=1&pid=113855&scid=113855012