darbia.utils.parsers
#
Assorted utility functions.
Module Contents#
Functions#
|
Parse the numbers in text. |
- darbia.utils.parsers.range_parser(text: str) list[int] [source]#
Parse the numbers in text.
- Parameters:
text – The text to parse
- Return type:
The list of numbers in the parsed ranges
Examples
>>> range_parser("1,2-5") [1, 2, 3, 4, 5]
Notes
https://discord.com/channels/267624335836053506/267624335836053506/1047647967143792661