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]+
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]+