Parsing the ID_PATH udev property.
Bases: parseudev._shared._shared.Field
Overrides default regular expression.
Bases: parseudev._shared.parse.OrderedParse
Manage the parsing of an ID_PATH value.
Parse the value.
Parameters: | value (str) – the value to parse |
---|---|
Returns: | the result of parsing |
Return type: | list of list of parser * match pairs |
Returns the empty list if parsing fails.
If multiple matches, picks the match with the longest matching prefix.
There should not ever be a tie, because, if there are two equally long matching prefixes, only one can match.
Bases: object
Aggregate parsers.