in reply to Re: Help - Counting text - Associative Array? (I was Annon Monk)
in thread Help - Counting text - Associative Array?
Hi Sam. This additional information helps, but what output do you want from the above example? Say you're searching for the number of times 'catalog' and 'crime' appear in security.txt, do you want zero for the former and 2 for the latter (which is the number of times these words appear in the section of the file you have shown us)? That would be pretty easy (but you would have to think about whether you want to include 'Crime' (capital first letter), 'crimes' (plural)... and then about how to exclude eg 'Crimean').
Or do you perchance want to open the files in the 'Object Name' field and search these for the words in question, which is not so easy, but eminently feasible (and note that the 'crimes/Crime/Crimean' issue remains)?
dave
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Help - Counting text - Associative Array? (I was Annon Monk)
by Mr_Lowry (Initiate) on Mar 19, 2004 at 20:48 UTC | |
by Hofmator (Curate) on Mar 22, 2004 at 14:16 UTC |