Finishing regex_test and one implmentation of regex