Regex using angularjs ng-pattern

时间:2018-09-18 19:45:34

标签: angularjs regex

I want to use angularjs ng-pattern.

Wich regex can i, using four characters, to allow the first just being a number, the second being a number OR a letter, the third being only a number and the fourth being only a number.

I try this one but it only allows letters on the second character.

[0-9]{1}[A-Z]{1}[0-9]{2}$

0 个答案:

没有答案