This module allows you to create content filter using regular expressions. Instead of creating a new module for each filter you need, now you can easily create and organize your own filters. Your filter will appear in the input format configuration page.

For a description of the regular expression syntax, see PCRE regex syntax; for a description of the modifiers, see Possible modifiers in regex patterns. If you know the syntax used by Perl regular expressions, see Differences From Perl.

Please read thedocumentation where you can see some examples of how to use the module.


Instead of creating a new filter module for every filter you need, you can use this module for tasks like creating your own tags, replacing token values and all changes you need in the text.
You can use simple replacements or use php code to write more powerfull things(like use it to highligth code with geshi).

Supported versions

The Drupal 6.1rc2 branch will have a limited support (which means I will eventually apply suggested patches).

If somebody is willing to become co-maintainer for the Drupal 6.1rc2 version, I will be more than happy to accept the offer, and make him/her co-maintainer.

The Drupal 7-x-1.x is supported, but expect only fixes for it. All new development is going to Drupal 8.x version.

Other notes

Because the strings used for the description and the help text of the custom filters are dynamic (i.e., taken from a database table), it is not possible to translate them through t().

Drupal 8

The version for Drupal 8 is current under development, and I hope to release a stable version with the stable release of Drupal.
Current the release 8.x-1.0-alpha15 is to use with Drupal alpha15, and the next ones will follow the same pattern.

Project Information