accept regexs in the search sanitizer

better-history/better-history#313