Moved get_regex_part