Segment.extract_values#

Segment.extract_values(text)[source]#

Extract segment values from string.

Will extract all segment values found in text and convert to their integer representation. The text can contain multiple values for this segment, or other text (including segments) as long as a boundary (_ or ‘ ‘) separates the segment information.

Parameters:

text (str) –

Text to parse, acceptable formats are:
  • ”{name|alias}{value}_{name|alias}{value}…”

  • ”{value alias}_{value alias}…”

  • ”{value alias}_{name|alias}{value}…”

Returns:

Segment values found in text.

Return type:

list[int]