Jump to content
UBot Underground

How To Filter Text On Ubotstudio


Recommended Posts

http://image.prntscr.com/image/f30227ace51f4f58801380b9bc8b94ec.png

 

i need to get email from that text . anyone can helps me ?

i cannot filter it from text , i see many regex examples but i cant find anything like this .

Thank

Edited by afkratien
Link to post
Share on other sites

First you have to scrape the text and then you can use a regular expression to get the email from the scraped text.

So an example would be this:

comment("Scrape the text here using scrape attribute, in this case
we are just using dummy text")
set(#text,"Congratulations! your account... email is vancondammehp@gmail.com","Global")
comment("This regular expression looks in the scraped text for
any email. If there is more than one add them to a
list instead of a variable.")
set(#email,$find regular expression(#text,"[a-zA-Z\\d\\.+-_]+\\@[a-zA-Z\\d-]+(\\.[a-zA-Z]\{2,4\}\\.[a-zA-Z]\{2,4\}|\\.[a-zA-Z]\{2,4\})"),"Global")
  • Like 1
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...