Compile the filter RegEx to speed up filtering.