samcro 2 Posted December 22, 2013 Report Share Posted December 22, 2013 Hey guys, I'm running into a bit of an issue grabbing some info from the code below. What I need to grab is the number highlighted in red and this number will be changing: _3u1" data-bt="{"id":18941894189, The ubot code that I have looks like this but it doesn't grab anything: add list to list(%uids, $find regular expression($page scrape("_3u1\" data-bt=\"{"id":", ","), "[0-9]+"), "Delete", "Global") I think I have an issue with the double quotes but I'm not sure at this point. Any thoughts? Quote Link to post Share on other sites
Code Docta (Nick C.) 639 Posted December 22, 2013 Report Share Posted December 22, 2013 Try this (?<=_3u1" data-bt="{"id".*?(?=,) _3u1" data-bt="{"id":18941894189, you can also just replace with $nothing the stuff you don't want. TC Quote Link to post Share on other sites
samcro 2 Posted December 22, 2013 Author Report Share Posted December 22, 2013 Try this (?<=_3u1" data-bt="{"id" .*?(?=,) _3u1" data-bt="{"id":18941894189, you can also just replace with $nothing the stuff you don't want. TC Hi TraffikCop, Thanks for your reply. I'll be honest, I don't have a lot of experience with regex in ubot so I'm not sure how to implement this in my code. Any chance you could show me? Quote Link to post Share on other sites
Code Docta (Nick C.) 639 Posted December 23, 2013 Report Share Posted December 23, 2013 Add me on skype (in my profile) or pm me the site for example for me to give you. Or give some more code to work with. I rather do one example then 10. Quote Link to post Share on other sites
Code Docta (Nick C.) 639 Posted December 23, 2013 Report Share Posted December 23, 2013 here are some vids you can check out. Watch the Regex and scraping vids. http://www.ubotstudio.com/tutorials Quote Link to post Share on other sites
samcro 2 Posted December 23, 2013 Author Report Share Posted December 23, 2013 ok, I watched the videos and I got it to work. Thanks! 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.