switched public regex methods to _match_regex_tree