Victor Bravo 0 Posted October 10, 2013 Report Share Posted October 10, 2013 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. Quote Link to post Share on other sites
HelloInsomnia 1103 Posted October 10, 2013 Report Share Posted October 10, 2013 Here you go: (?<=UID\=)\d+ Quote Link to post Share on other sites
Victor Bravo 0 Posted October 10, 2013 Author Report Share Posted October 10, 2013 Thanks for the fast reply. Can you post a code snippet so I can see how a regex is applied in the code? Thanks. Quote Link to post Share on other sites
HelloInsomnia 1103 Posted October 10, 2013 Report Share Posted October 10, 2013 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") 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.