implemented find_regex()