mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-23 20:44:00 -07:00
https://docs.python.org/2/library/stdtypes.html#str.split str.split([sep[, maxsplit]]) If sep is given, consecutive delimiters are not grouped together and are deemed to delimit empty strings. >>> "85563 ----------------C-- /var/lib/libvirt/images".split(' ')[0:2] ['85563', ''] >>> "85563 ----------------C-- /var/lib/libvirt/images".split()[0:2] ['85563', '----------------C--'] |
||
|---|---|---|
| .. | ||
| files | ||
| meta | ||
| tasks | ||
| aliases | ||