Add adapter library for regular expressions in regex.hpp, and finish removing RE2.