webpro 31 Posted May 3, 2014 Report Share Posted May 3, 2014 Now i don't know if my issue is UB or REGEX related This should grab the emails of the page i'm seeing in the browser right ? add list to list(%emails, $find regular expression(#document, "\\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]\{2,4\}\\b"), "Delete", "Global") or set(#document, $find regular expression($document text, "\\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]\{2,4\}\\b"), "Global") Well i don't grab any emails ?I even made this test which is, upload to one of my site a plain index.html and in it Member Partner All Directs 0 Memberd Directs 0 Contact Info rmarmoucha@mail.com 6175102917 Nkwane Memberd Date: 2014-03-28 22:57:40 Member All Directs 3 Memberd Directs 0 Contact Info motho131@mail.com Should grab 2 emails right ? Well it doesn't and if i use this regex in editpad it works fine ? What's my error thanks Quote Link to post Share on other sites
UBotBuddy 331 Posted May 3, 2014 Report Share Posted May 3, 2014 how about this regex? (\w{1,}\b@\w{1,}\.\w{1,}) Quote Link to post Share on other sites
UBotBuddy 331 Posted May 3, 2014 Report Share Posted May 3, 2014 Works great for me. navigate("http://ubotsandbox.com/regex-ex.-3.php", "Wait") wait for browser event("Everything Loaded", "") set(#document, $document text, "Global") clear list(%emails) add list to list(%emails, $find regular expression(#document, "(\\w\{1,\}\\b@\\w\{1,\}\\.\\w\{1,\})"), "Delete", "Global") set(#document, $nothing, "Global") Good Luck! Buddy Quote Link to post Share on other sites
Code Docta (Nick C.) 638 Posted May 4, 2014 Report Share Posted May 4, 2014 try it here http://regexhero.net/tester/it is meant for .net regex testing TC Quote Link to post Share on other sites
UBotBuddy 331 Posted May 4, 2014 Report Share Posted May 4, 2014 I use http://www.rubular.com/r/nidQpOizwC It doesn't use Silverlight. IMHO I hate sites that require me to load extra stuff. But that's me. Buddy 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.