Let's say I want to look for the word "barf" and forms of different spellings like "barph"...
I know that
/(bar)(f|ph)/g will get both of those...
How do I detect "baaarrrrfff" though, as an example?
Specifically, I'm trying to make a swear kicker that will use RE's to be a bit wiser for the detection, and the one thing that can evade are repeated letters (or if they type out the word in the form of b-a-r-f or "b a r f").. Any assistance would be appreciated.