Quote:
didn't your thing end with storing 256 charaters rand ?
That would not be enough to store all badwords.


Uh, no. It can hold over 900 characters. But you'd only want around 800 in there to be on the safe side.

Edit:

In case you're wondering how my hash table script differs from your friends, my script only looks at the relevent bad words found in the line.

Meaning if you had a list of 200 bad words, and the line of text only contained 2 of those bad words, your friends code would loop through all 200 of them. Where as my code would loop through just two, to replace your bad words.

Last edited by Rand; 11/08/06 03:59 AM.