Page 1 of 1

REGEX question.

Posted: Fri May 29, 2009 10:35 pm
by wren9
Hi guys

I want to scrape emails addresses in my own website.
http://czone01.com/

using REGEX while i'm formulating my own REGEX.
Please i dont need DOM this time i only need REGEX.

Please assume that these email addresses will change someday.


Thank you in advance,


-warren

Re: REGEX question.

Posted: Fri May 29, 2009 10:51 pm
by mikemike
That's not really a question, thats you asking someone to do your work for them :P

Re: REGEX question.

Posted: Sat May 30, 2009 4:22 am
by jayshields
Here is a starting point:

Code: Select all

^
[_a-zA-Z0-9-]+(.[_a-zA-Z0-9-]+)*                                 # the username part
@[a-zA-Z0-9-]+                                                            # hostname
(.[a-zA-Z0-9-]+)*.(([0-9]{1,3})|([a-zA-Z]{2,3})|(aero|coop|info|museum|name))   #TLD
$
Taken from the samples at http://www.cuneytyilmaz.com/prog/jrx/