2011-04-21 107 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 
相關問題