开发者

flex : regular expression for accepting only numbers, letters , white spaces

I want to write a regular expression to check string that contains only letters,digits,spaces,# and the string length should be minimum 10 and maximum 29 and string should not begin with blank.

please h开发者_Go百科elp me


This is one possible regular expression, but I don't know flex:

/^[a-zA-Z0-9#][a-zA-Z0-9 #]{9,28}$/
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜