Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

Description

It fiters plain text from plain text + html content, the input has the shape:

"plain text <div><p>html content</p></div>"

It keeps only the plain text at the beginning.

Submitted by gugol - 8 years ago