Regular Expressions 101

Community Patterns

Find comment text in html

0

Regular Expression
ECMAScript (JavaScript)

/
(?=<!--)([\s\S]*?)-->
/
gmi

Description

Find the Comment text in html to remove from html

Submitted by anonymous - 3 years ago