Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

/
(?:<(p)([\s\w='":;]+)?>)(.*)(?:<\/(p)>)
/
g

Description

The regular expression separates the beginning and end of the tag, as well as everything between them into separate groups.

Submitted by anonymous - 3 years ago (Last modified 3 years ago)