Regex to prevent certain phone area codes

Regex to prevent certain phone area codes

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

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?

pattern="^(+0?1\s)?(?\d{3})?[\s.-]?\d{3}[\s.-]?\d{4}$"

Angular 9 Tutorial: Learn to Build a CRUD Angular App Quickly

What's new in Bootstrap 5 and when Bootstrap 5 release date?

Brave, Chrome, Firefox, Opera or Edge: Which is Better and Faster?

How to Build Progressive Web Apps (PWA) using Angular 9

What is new features in Javascript ES2020 ECMAScript 2020

How to Use Cookies in Angular for Storing user’s Credentials

In this post, I will be explaining about using Cookies in Angular for Storing user’s Credentials

Angular Tutorial - Learn Angular from Scratch

Angular Tutorial - Learn Angular from Scratch: This course is for beginners who are curious on how to get started with Angular. In this course you will learn how to download, install and play around with Angular. We teach you the main components of Angular, so that you can get up and running with it asap. You will learn now to start building applications with Angular.

An Angular Roadmap — The Past, Present, and Future of Angular

✅Interested in being an Angular developer in 2019? ... blog post it's most likely that you've written some code in javaScript in the past.