> > *but.. > *as noted in my comments, > if * asdf* is a racial slur, > then > *youasdf* > should NOT be allowed as a username, even if *youasdf *is somehow taken > in another context, in a real name or word. User will have to pick > another username. > > What do I need to do the the reg ex to flag > *youasdf* > as a bad word? >
As I mentioned earlier, replace BADWORDS.match(value) with BADWORDS.search(value). Anthony --