extract email from text

Discussions and Tech Support related to website data extraction, screen scraping and data mining using iMacros.
Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information:CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
Post Reply
Programlover
Posts: 3
Joined: Tue Mar 03, 2015 6:32 am
Location: KW
Contact:

extract email from text

Post by Programlover » Mon Jun 01, 2015 7:23 am

Hi,
Thanks for Shugarhttp://stackoverflow.com/users/4270557/shugar in stackoverflow

Code: Select all

SET testString "bla bla bla xyz@mail.com bla bla bla"
SET email EVAL("'{{testString}}'.match(/(([^<>()[\\]\\\.,;:\\s@\\\"]+(\\.[^<>()[\\]\\\.,;:\\s@\\\"]+)*)|(\\\".+\\\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))/g)[0];")
PROMPT {{email}}
http://stackoverflow.com/questions/3055 ... th-imacros
I Love iMacros and I did many complex automation processes using it.
pursharthahuja
Posts: 3
Joined: Mon Jan 25, 2016 7:17 am

Re: extract email from text

Post by pursharthahuja » Mon Jan 25, 2016 11:44 am

thanks i was looking for this for about 8 hours and finally i found it and it worked.. thanks buddy :D
Post Reply