Automatically refresh matches

Simple patch to refresh matches when either the regex or test strings are changed.