Store information about a regexp match for later retrieval