caching regex pair will improve performance. i guess?