Regular expression for a specific number

I need a regular expression for the id number, it's 9 numbers, and the first number should be 4 or 9 or 8.

can anyone help?

+4
source share
1 answer

You can use the following regular expression:

^[489][0-9]{8}$ 
+13
source

Source: https://habr.com/ru/post/1347790/


All Articles