regular expressions in replacement pattern
scedwar - April 17, 2008 - 14:19
| Project: | Wordfilter |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
I'm using the wordfilter to filter out expletives and swear words. However, I don't want to completely replace the word, for example I would like to replace the (most offensive) word "cabbages" with "ca**ages".
Currently, this can only be done for each word individually - a laborious process that could easily be solved by a regular expression.
Would this be possible?

#1
I haven't checked it out myself but http://drupal.org/project/customfilter could be what you are looking for.