Regular Expressions 101

Replace caracters not inside HTM tags

Open Workspace
  • JavaScript
  • Substitution
6

Regular Expression

/
(")(?![^<>]*>)
/
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