开发者

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

开发者 https://www.devze.com 2023-04-03 08:20 出处:网络
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.

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

精彩评论

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