-2

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 help me

1 Answer 1

1

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

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.