Header sometimes not sticking to the top of the page

The reason it didn’t work is because using a \b in a “character class” is a “backspace” and [^\b] is equivalent to saying:

Match any character that is NOT the backspace character (ASCII 8)

Original regex for reference: \bcategory-[^\b]+

2 Likes