2011-04-21 108 views

回答

3

不要用括号这里括号,但:(LA|BN)\d{8}

说明:

 
(LA|BN) Match character sequences LA or BN 
\d{8} followed by 8 digits 

而初始正则表达式[LA|BN].\d{8}可以理解为:

 
[LA|BN] Match either character L,A,|,B or N 
.  Match any character 
\d{8} followed by 8 digits 
相关问题