Fix query for mariadb

Mariadb's regex library doesn't support the [[:>:]] tokens so use \b instead.