WW-4095 WW-4094 Changes how pattern is compiled to be once per instance and changes default regexp to match underscore