ftftft fudge these files to fit template - a live regex hacking tool

Alpha version. Bugs inevitable. Gentle feedback welcome: ben@uniqcode.com

Regexes

The standard Javascript regex engine is used, so you can only use the features it supports (no lookbehind, for example)
You can however use PCRE's s modifier flag which extends . to match any character including newlines.

Regex Replacement Flags
Success Copy to clipboard failed. Please do it manually.

Template HTML

The transformed input HTML will be inserted to replace the string {insert} in this template to generate the preview.

Input HTML

Output HTML

Preview