Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
<h([1-6]).*>.*<\/h\1>
/
g

Description

This regex get all header tag in html file with tag included

Submitted by Aubin - 10 years ago