[Solved] Rewrite regex to accept conditional terms
Your regex doesn’t say what you think it says. ^([a-z0-9_\.-])+@[yahoo]{5}\.([com]{3}\.)?[com]{3}$ Says any characters a-z, 0-9, ., – one or more times. That later part where you are trying match yahoo.com is incorrect. It says y, a, h, or o, any of those characters are allowed 5 times. Same with the com so aaaaa.ooo would be … Read more