I got it now, sorry to be so dense... It makes total sense to pre-compile the Regex in the constructor given that the object gets re-used for each request. Thank for clarifying that.