Fixed problems with regexes that had spaces (\s). Next problem: change coloring when regex is changed, not just text.