crowsetta.formats.seq.textgrid.parse.search_next_line#
- crowsetta.formats.seq.textgrid.parse.search_next_line(fp: TextIO, pat: Pattern) str [source]#
Get next line from a text stream and search it for a regex pattern.
This is a helper function used by
get_float_from_line()
,get_int_from_line()
, andget_str_from_line()
.- Parameters:
fp (TextIO) – Python text stream from an open TextGrid file.
pat (re.Pattern) – A complied regex pattern.
- Returns:
match – The match string
- Return type: