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
Post a Comment