Regex to prevent certain phone area codes

I'm trying to prevent users from typing a phone number that starts with area code 555.

Below is my phone regex. How can I ensure the first 3 are not 555?

I thought about stopping numbers 5 for each, but it would have to be 555 consecutive. Can it be done in one regex or do I need 2?


#regex #angular

1 Likes1.45 GEEK