Count integers , small letters in javascript
How to count no of integers , small letters in text using javascript
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
SenthilkumarPosted Mar 31, 2012, 7:32 AM
Just i designed a sample page to test this.
Place these two controls in your page:
Place this javascript function in your header:
Output:
If it is helpful then mark it as "Accepted Answer"
SenthilkumarPosted Mar 31, 2012, 10:01 AM
Try this...
var totalSpecChars = content.replace(/[^!""£$%^&*())]/g,"").length;
Mayur GujrathiPosted Mar 31, 2012, 8:08 AM
Mayur GujrathiPosted Mar 31, 2012, 7:40 AM