Regular Expressions 101

Community Patterns

search h1 tag html

0

Regular Expression
PCRE (PHP <7.3)

/
(<h1.*?>.*?<\/h1>)
/

Description

(<h1.?>.?</h1>)

example:

<h1 style="color: red;">Your best title</h1>
Submitted by otharwa - 9 years ago