add regex_1 - a regex implementation with just basic types