Sodaubotguru 0 Posted June 25, 2012 Report Share Posted June 25, 2012 http://geektyrant.com/storage/0999-post-images/ironyman.jpg%253F__SQUARESPACE_CACHEVERSION%253D1337789008969http://geektyrant.com/storage/0999-post-images/ironyman.gif%253F__SQUARESPACE_CACHEVERSION%253D1337789008969 i would like to get rid of %253F__SQUARESPACE_CACHEVERSION%253D1337789008969 in url how can i solve it some are .gif or .jpg Quote Link to post Share on other sites
Legend 181 Posted June 25, 2012 Report Share Posted June 25, 2012 If the numbers are always the same you don't need regex, simple $replace will do it... http://www.ubotstudio.com/forum/public/style_emoticons/default/rolleyes.gif Quote Link to post Share on other sites
CreativeWurks 9 Posted June 26, 2012 Report Share Posted June 26, 2012 This isnt the answer, but for most things.... i have chosen to go the route of regexmagic. Id rather let it do the regex for me, and Ill plug it into my tool. Quote Link to post Share on other sites
k1lv9h 76 Posted June 28, 2012 Report Share Posted June 28, 2012 Hi, Sample code to do this with regex.set(#url, "http://geektyrant.com/storage/0999-post-images/ironyman.jpg%253F__SQUARESPACE_CACHEVERSION%253D1337789008969", "Global") slimdownurl() set(#url, "http://geektyrant.com/storage/0999-post-images/ironyman.gif%253F__SQUARESPACE_CACHEVERSION%253D1337789008969", "Global") slimdownurl() define slimdownurl { set(#urlslimmeddown, $replace regular expression(#url, "(%253F_.*)", $nothing), "Global") alert(#urlslimmeddown) } Kevin Quote Link to post Share on other sites
James J 3 Posted July 14, 2012 Report Share Posted July 14, 2012 if you want to get rid of everyting behind the % symbol...i beleive it would it be %.+ in the area where you placethe "text to replace" then put a $nothing parameter or justleave the "replace with text" empty J Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.