For the first question the answer is a regular expression:
Code:
if ([color:red]$regex($1-,/(?:[^\w\s]|_)+p(?:[^\w\s]|_)+e(?:[^\w\s]|_)+n(?:[^\w\s]|_)+i(?:[^\w\s]|_)+s(?:[^\w\s]|_)+/S)[/color]) { profanity10 }

Note: There's no need to use $strip() around $1- in this case, because it's done by the regular expression when the /S modifier is used.

As for hash tables, to use them efficiently you should use them by their item names instead of by their indexes. However, sometimes using the indexes is necessary, in which case the lowest index will always be 1 and the highest can be found with $hget(hash_table_name, 0)

Last edited by starbucks_mafia; 11/06/04 11:54 PM.