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, but there is an important issue that needs to be fixed and i really need help on it #2224055: Remove drupal_add_tabledrag and use render array . Until this is fixed, the release for Drupal 8 can not be used.

Project Information