Jump to content
UBot Underground

Recommended Posts

Hey guys. Im pretty new to ubot and this is going to be my first question regarding an issue im having. 

 

Basically Im trying to replace everything in the following URL before sub=

http://abc.xyz.com/c/187/20468-45700-?us=http%3A%2F%2Fwww.xyz.com&t=3801&aff_sub=4bca36660bbe349aa726f4e3b34aba60&mobile=1

That way i would be left with this:

4bca36660bbe349aa726f4e3b34aba60&mobile=1

and then i want to add a different URL before it which i believe can be just done with the replace regex command in ubot. Im just having difficulty with the regex string so any help would be greatly appreciated.

 

 

Cheers.

Edited by Civize
  • Like 1
Link to post
Share on other sites

 

Try this. Replace the $url with the variable where you want to replace the regex.
set(#url, $replace regular expression($url, "http(.*?)sub=", ""), "Global")

 

 

Worked like a charm.. Thanks! :)

  • Like 1
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...