I have been trying to make a Reg Exp to match the URL with specific domain name.
So if i want to check if this url is from example.com what reg exp should be the bes
Use this:
/^[a-zA-Z0-9_.+-]+@(?:(?:[a-zA-Z0-9-]+\.)?[a-zA-Z]+\.)? (domain|domain2)\.com$/g
To match the specific domain of your choice.
If you want to match only one domain then remove |domain2 from (domain|domain2) portion.
|domain2
(domain|domain2)
It will help you. https://www.regextester.com/94044