Regular expression for email to allow only two domain
I have to create a regular expression for email id like this
firstname.lastname@example.org and email@example.com
I need to allow only yahoo and gmail as the domain not any other domain. I have used this expression \w+([-+.]\w+)*@yahoo.com . It is working fine for yahoo. but I want to include gmail also. How can I modify it to except gmail also?
I am using ASP.NET 2.0