> A letter count is FAR easier - just get the string's length.
The length of the string will give you a *character* count. I would
not inlcude punctuation, white space, etc. in a *letter* count. For
number of letters, try:
s.replace(/[^a-zA-Z]/g,'').length;
--
Rob
No comments:
Post a Comment