Regular Expressions 101

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

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

Description

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

example:

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