Link to home
Start Free TrialLog in
Avatar of raybies
raybiesFlag for Australia

asked on

Regular expression C# match email address AND not like micro.com (1/2 done)

Folks I'm having a hard time getting a regular expression to match a proper email address xxx@xxx.xxx AND not containing micro.com.

I can do either by itself but not both combined.

This will match an email address: (\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*)
This will match NOT micro.com: ^((?!micro).)*$

Any chance some one can help me combine them.
ASKER CERTIFIED SOLUTION
Avatar of numberkruncher
numberkruncher
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of raybies

ASKER

Thanks!
No problem ;)