Regular Expressions 101

Community Patterns

Get any Headline tags (h1, h2 etc.)

1

Regular Expression
PCRE (PHP <7.3)

/
<h[1-9]{1}\s*[id=".+"]*>.*[<\/h[1-9]{1}>]*
/
gmuU

Description

no description available

Submitted by stephan wahlen - 8 years ago