[quick view] Check color boundaries for hyphens

This is for #3445.

I also updated color regex to stop remembering sub matches.