I want to put a swear word filter on my weboard.
I will have a list of swear words I want to block in an array called [tt]@swearWords[/tt] and the message being submitted to the weboard in [tt]$message[/tt].
What is the best way to check to see if [tt]$message[/tt] contains any elements of [tt]@swearWords[/tt]?
I will have a list of swear words I want to block in an array called [tt]@swearWords[/tt] and the message being submitted to the weboard in [tt]$message[/tt].
What is the best way to check to see if [tt]$message[/tt] contains any elements of [tt]@swearWords[/tt]?