Regular Expressions 101

Community Patterns

Get h1-6 tag

0

Regular Expression
.NET 7.0 (C#)

@"
<(h[1-6]){1}(?:.*?)?>(.*?)</h[1-6]>
"
g

Description

<(h[1-6]){1}(?:.?)?>(.?)</h[1-6]>

Submitted by OlegBel - a year ago