Posts: 75
Location: New Jersey, USA
|
This is not tested!
Code:
@badwords=('bad','word','list','here');
foreach $badword (@badwords) {
if ($string_to_test =~ /$badword/gi) {
$highlight_the_bad_word =~ s/($badword)/<B>$1<\/B>/gi;
#return an error here
}
}

__________________
Please login or register to view this content. Registration is FREE
Where you can get personal, online!
Last edited by eBlush_Hector; 04-30-2004 at 11:02 AM..
Reason: Added code tags
|