Fix match when text mixes styling tags