Jump to content
UBot Underground

Recommended Posts

I want to extract a number from a long url. A sample might look like this:

http://www.whatever.com?anotherwhatever&UID=123456&somemorewhatevers

 

I want to extract just the UID number. I tried to use the regex editor but I don't know how it's supposed to work. Are there any videos yet on using this regex editor? Can anyone give me the regex for what I need from this url?

 

Any help is much appreciated. Thanks.

Link to post
Share on other sites

Sure thing, I think you should be able to copy these into standard ubot one at a time

set(#url, "http://www.whatever.com/?anotherwhatever&UID=123456&somemorewhatevers", "Global")
set(#uid, $find regular expression(#url, "(?<=UID\\=)\\d+"), "Global")

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