vargroup

FilenameParts.vargroup

The group of variables (vargroup) contains meta attributes.

Notes

Each variable of the group is a string. It allows words [a-zA-Z0-9_] with the addition of:

  • ‘-‘ hyphen-minus (U+002D)

  • ‘+’ plus

  • ‘,’ comma

  • ‘.’ dot

Its regular expression is ^#(_[a-zA-Z0-9+-,. ]+)+$

Examples in which meta attributes are stored in the filename:

  • number of a subsequent sequence e.g. image sequences

  • a date neither being the creation nor the change date

Examples

>>> from namefiles import FilenameParts
>>> FilenameParts.disassemble("Zeb-a#_000000_ffffff_1.9m_no color").vargroup
['000000', 'ffffff', '1.9m', 'no color']
Returns

List[str]