I wish i knew regex... well i am having little problem here. I got a pattern for email, but it does not include NUMBERS.. I must get a match only if the email has asndaisdnas12@asd.com The 2 numeric right before the @ is what i am searching. Its a spam related attack, hope someone can help here is the pattern i am now using
Posts: 2664
Score: 46
Joined: 6/29/2006
From: Orange County, California
Status: offline
How about something like this...
This is sort of what's going on ^ - start of string [a-zA-Z] - any letter [\w\.\-]* - any letter/number/underscore, period, hyphen; occuring 0x or more \d{2} - 2 numbers @ - literal @ character \w+ - any letter/number/underscore; occuring 1x or more \. - period [a-zA-Z]+ - any letter; occuring 1x or more $ - end of string