I'm looking for a way to find the number of occurances of a word in a webpage.
I do something like this:
$doc = get 'http://www.freebsd.org/'
What I'd like to do now is to find out how many "and" there is in this webpage that I currently have in the $doc variable.
Anyone have a clue on how to to this? I'll figure it out eventually by myself but since there are some smart people here I
thought I'd ask.