Download & Extend

regular expressions in replacement pattern

Project:Wordfilter
Version:5.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Issue tags:Drupal 7.x

Issue Summary

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?

Comments

#1

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

#2

adding tag

nobody click here