How can I use a Java Regex to match a banned word, for example if I wanted to ban the word stackoverflow it would match stackoverflow, s t a c k o v e r f l o w and s-t-a-c-k-o-v-e-r-f-l-o-w.
The purpose of this is to stop people from saying banned words in chat. The regex must also work so that their can be anything at either side. For example "Go to stackoverflow, its a good website" would detect stackoverflow.
What you can do is strip all non alphanumeric characters here and then match to your banned words. But this will not completely eliminate the chance of conveying foul words to your audience. for example people can use leet of which human cognitive system can understand anyway for example the word "Long" can be written as "|0ng" I will not use real examples so as to keep it clean. for example "Alexander" can be "/\ | 3 >< /\ |\| c| 3 r"