I need regular expression for ID number, it's 9 numbers and the first number must be 4 or 9 o开发者_运维百科r 8.
can some one help ?
You can use the following regex:
^[489][0-9]{8}$
I need regular expression for ID number, it's 9 numbers and the first number must be 4 or 9 o开发者_运维百科r 8.
can some one help ?
You can use the following regex:
^[489][0-9]{8}$
精彩评论