Regular Expressions 101

Community Patterns

HTML element

1

Regular Expression
ECMAScript (JavaScript)

/
<(?<tag>\w+).*?>(?<content>.*?)<\/\k<tag>>
/
g

Description

Extract html element & content

Submitted by Flymeth - 24 days ago