Regular Expressions 101

Community Patterns

regular expression to replace except text from html tags

1

Regular Expression
ECMAScript (JavaScript)

/
(simple)(?![^<>]*>)
/
gi

Description

expression to look for words in innerText & not in html tags as id or class or style name

Submitted by umarfarukh - 10 years ago