0

i have try lot but fail any one if give such regular expression give also detail
Different Possibility are

12-er-34

or it may be like

woc-ii-98

expression must contain numeric number but its not necessary to take hyphen in every expression.i need this to onblur function of input when user enter text and go to other if the text match the regular expression its ok else alert text not allowd

4

1 回答 1

0

尝试类似的东西

([a-zA-Z0-9]{2,3}\-[a-zA-Z]{2,3}\-[0-9]{2}) 

我不是正则表达式专家,但它似乎在我拥有的测试工具中工作:)

于 2013-09-16T10:57:04.673 回答