Since this is only going to match things usefully if the term is a regular expression, would it make sense to pull the regexification into the `lambda`?