HailwoodH
Reactiflux4y ago
12 replies
Hailwood

✅ – Hailwood – 00-51 Oct 7

Can someone please help me with some regex -
Given strings like
"this definitely will not match"
"this min-h-32 should not match"
"this h-12 should match"
"this h-12-no not match"


I want to match if the string contains
h-[numbers]

The
h-[numbers]
can appear anywhere in the string (end,start,middle) but cannot be "touching" any other characters other that whitespace.
Was this page helpful?