Segment.value_regex#

Segment.value_regex()[source]#

Generate a regular expression to extract segment values.

Regular expression will match if name / alias and integers are used or if values aliases are used.

Returns:

Regular expression where group 1 contains the segment value and group 2 contains the segment alias. One, and only one, group will have a value for any given match.

Return type:

str