line_match and line_start API. #4