Regular expression for email to allow only two domain

I have to create a regular expression for email id like this and

I need to allow only yahoo and gmail as the domain not any other domain. I have used this expression \w+([-+.]\w+)* . 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








Need Your Help

Handling large amount of data and processes in multiprocessing

python numpy multiprocessing large-files

So after long considerations and try-outs, I'm once again asking the pros.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.