Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Created·2021-07-31 06:13
Flavor·JavaScript

/
<font color="([^"]*)">(.*?)<\/font>
/
gm
Open regex in editor

Description

This regex fixes <font> tags that contain a color attribute, replacing them with <span> tags containing a style attribute

Submitted by Alecto Irene Perez