in reply to Sentence Measurer
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
|
|---|