customfilter
Overview
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.
Features
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 2.0.x works Drupal 8 and Drupal 9.
- The 3.0.x works with Drupal 11. I will remove support for earlier versions.
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().