|go ahead... be a heretic|
Re^4: matching the wordsby BrowserUk (Pope)
|on Feb 16, 2013 at 22:17 UTC||Need Help??|
Rather than loading the real words as an array, I'd load them as a single whitespace delimited string.
It is a couple of hundred times faster to invoke the regex engine, once, to search for one word in a string containing hundreds or thousands of words; than to invoke it hundreds or thousands of times to match against one word at a time:
With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.