This uses and manipulates a mode string, and returns a flatlist, for easier parsing, so for example:
SYNTAX: !regex -p