you have a lot of repetition in your character class...
\w is the same as ummm... a-zA-Z0-9_ (pretty sure),
but that shouldn't prevent it from working...
really, what is wrong with splitting on whitespace, \s+
That should give you a decent count.
as an aside, you can do $Counter++ to add one to counter,
or even $Counter += 1;
- Ant
In reply to Re: Sentence Measurer
by suaveant
in thread Sentence Measurer
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |