Regex Expression


Used the online regex tested, created one myself and also had some help from others but no success so far.

Basically I need a regex expression that works in MWZ that blacklists all domains except for Gmail and Yahoo.

I created one that worked with the online tester but it didn't work in MWZ, and had someone else create one that worked but MWZ would not allow it to be saved.

If this isn't possible, what is the best way to have MWZ only sending to gmail and yahoo domains. I'm using the method of sending through a cPanel email so I can't easily control this from the SMTP side, and would prefer it controlled from the MWZ side.