Drupal is a registered trademark of Dries Buytaert

regex_text_replacement

199 sites No security coverage
View on drupal.org

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

  1. Visit your text formats and editors at admin/config/content/formats
  2. Edit a text format
  3. 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>
    

Activity

Total releases
2
First release
Apr 2025
Latest release
3 weeks ago
Release cadence
306 days
Stability
100% stable

Releases

Version Type Release date
1.0.1 Stable Feb 11, 2026
1.0.0 Stable Apr 11, 2025