title: How to count the words and numbers in textarea using regular expression?
body: <p>I have problem on regular expression, its like i am trying to count the number of word in text area but i am not getting desired output. The main problem is, that it does not count the numbers for example "Hello world 123" it counts only 2. and for "123" it does not count at all. my regular expression is<code>response.trim().replace(/\b[\s,-:;'"_]*\b/gi, ' ').split(' ');</code> </p>