0

Currently, I have this:

/(?<!gmail)\.com/

This preg_match all ".com" except "gmail.com".

The question is: how can I preg_match all ".com" except a number of certain domains like gmail.com, hotmail.com, yahoo.com, facebook.com, twitter.com?

Thanks in advance!

1 Answer 1

1
/(?<!gmail|hotmail|twitter|facebook|yahoo)\.com/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.