Jump to content
UBot Underground

Recommended Posts

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

Link to post
Share on other sites

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. B)

Link to post
Share on other sites

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

Link to post
Share on other sites
  • 3 weeks later...

if you want to get rid of everyting behind the % symbol...

i beleive it would it be %.+ in the area where you place

the "text to replace" then put a $nothing parameter or just

leave the "replace with text" empty

 

J

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...