车牌号正则表达式为
测试代码如下
返回结果
[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领]{1}[A-Z]{1}[A-Z0-9]{5,6}
int(9)
string(2) "ok"
int(10)
string(5) "error"
int(10)
string(5) "error"
int(12)
string(2) "ok"
int(10)
string(2) "ok"
int(9)
string(5) "error"
int(10)
string(2) "ok"