Standalone letters treated as words - regex, javascript -


i have regex: /^[a-za-z'.,-]{5,500}$/

but doesn't treat standalone letters such a or i whole word. wondering how change letters treated words , numbers ignored.

thank you.

change following:

var pattern = /^[a-za-z'.,-]{1,500}$/;                              ↑ 

Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -