Regular Expressions 101

Community Patterns

Replace caracters not inside HTM tags

6

Regular Expression
ECMAScript (JavaScript)

/
(")(?![^<>]*>)
/
gm

Description

Select a character (or string) ingnoring if that element is inside the HTML tags. Useful to apply html tags using replace.

Submitted by Alex5B - 9 years ago