I want regex get word length less than 12 and not get more than 12 any help??
Something like /\\w{1,12}/
maybe?
\\w
stands for “word character”. It always matches the ASCII characters [A-Za-z0-9_]
. Notice the inclusion of the underscore and digits.
If you just want letters, use a character class.