Sanity check for regex filter.