Memoize more regular expressions