afkratien 12 Posted April 15, 2017 Report Share Posted April 15, 2017 (edited) 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 April 15, 2017 by afkratien Quote Link to post Share on other sites
HelloInsomnia 1103 Posted April 15, 2017 Report Share Posted April 15, 2017 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") 1 Quote Link to post Share on other sites
afkratien 12 Posted April 17, 2017 Author Report Share Posted April 17, 2017 thanks alot . it worksmaybe i need to learn regex more . 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.