How do you count occurrences of words or letters?
A feature in notetab pro allows you to count the number of occurrences of a letter or word within a document or group of documents and then displays the results.
For example if you take the sentence above the word 'of' is mentioned 3 times.
This feature is extremely handy. Can you help please?
Count occurrences of words or letters
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
RE: Count occurrences of words or letters
One way to do it is a search and replace.
Put the word you want to count into the find _and_ the replace box, then do a Replace all.
In the statusbar Textpad shows you the number of occurrences.
Andreas
Put the word you want to count into the find _and_ the replace box, then do a Replace all.
In the statusbar Textpad shows you the number of occurrences.
Andreas
RE: Count occurrences of words or letters
Mmm... but that destroys case if you want to maintain casing. If that's the case, turn on regular expression matching (and case sensitivity), search for the word
(word)
and replace with
\1
Good luck!=)
(word)
and replace with
\1
Good luck!=)
RE: Count occurrences of words or letters
alternatively, use the search in files.
specifiy the filename and the directory, and check the "file counts only" button.
this won't edit your file if you're edgy about search and replace.
specifiy the filename and the directory, and check the "file counts only" button.
this won't edit your file if you're edgy about search and replace.
RE: Count occurrences of words or letters
Firstly, thank you all for helping me out. I have tried all options and have found them all to work very well. Not quite as simple as NoteTab Light but I'm not complaining.
I really appreciate your speedy feedback.
Regards,
Ashley
I really appreciate your speedy feedback.
Regards,
Ashley