Jump to content
UBot Underground

Recommended Posts

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

Link to post
Share on other sites

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

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