if we do that, maybe should we compile the regexp rather than having a string. the names suggest it's a regexp object.