in reply to prohibiting certain strings

Insert something like (?s:.*) between each character.

/b(?s:.*)a(?s:.*)d(?s:.*)w(?s:.*)o(?s:.*)r(?s:.*)d/i

⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊

Replies are listed 'Best First'.
Re^2: prohibiting certain strings
by ikegami (Patriarch) on Dec 29, 2005 at 02:12 UTC
    Not quite. The sentence "She hid in the closet" would be flagged as a badword.

      I considered that but figured that I'd rather be restrictive than permissive.

      ⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊