Adds a filter that can be applied to text formats to make complex replacements.
Requirements
This module requires no modules outside of Drupal core.
Installation
Install as you would normally install a contributed Drupal module. For further
information, see Installing Drupal Modules.
Configuration
- Visit your text formats and editors at admin/config/content/formats
- Edit a text format
- Add the Regex Text Replacement filter. For example, the following will replace h2 tags with h3...
/<h[1|2]([^>]*)>(.*?)<\/h[1|2][^>]*>/mi||<h3(1)>(2)</h3>
Supporting organizations:
Development
Project information
Maintenance fixes only
Considered feature-complete by its maintainers.- Project categories: Content editing experience
- Ecosystem: Input Formats
104 sites report using this module
- Created by robloach on , updated
Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.






