I'm trying to censor a dirty word. Users can replace some characters with *.
Let's take the word “dog” for example (this is certainly not dirty)
etc.
Regex looks like (d|\*)(o|\*)(g|\*)
Is it possible to combine all the options above, but not "***"?
source
share