Whats the best way to remove a query string (the question mark variables) from a image url.
Say I got a good image such as http://i.ebayimg.com/00/s/MTYwMFgxNjAw/z/zoMAAOSwMpZUniWv/$_12.JPG?set_id=880000500F But I can't really save it properly without adding a bunch of useless checking code because of the query string crap after it.
I just need http://i.ebayimg.com/00/s/MTYwMFgxNjAw/z/zoMAAOSwMpZUniWv/$_12.JPG
Looking for the proper regular expression that handles this so I could replace it with blank.