am using the patterns like "/[a-zA-Z0-9][^\s]/" and "/\s/" but no one is working. can you give any solution for this "ng pattern for input tag and which allows oly alphanumeric but it does not allow spaces in the input field ".
Take the 2-minute tour
×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
Try the following pattern: /^\s*\w*\s*$/
|
|||
|
Please see here http://jsbin.com/ruqet/1/edit
|
|||||||||
|