Entries tagged with snippets
A collection of a few snippets I've made use of recently.
nov/09
13
Remove profanity (or any words) with a regular expression
0 Comments | Tags: python regular-expressions snippets
If you have comments on your site, or allow use generated content to appear in prominent places, it's a good idea to remove profanity. This regular expression matches case-insensitive for any bad words, and strips the entire word to the leading and trailing whitespace.
My first github repo -- a collection of PHP Snippets.
