I would like to propose a new command parameter for $regex(), like so:$regex(name, string, pattern, command)
Thus allowing for clever handling of match strings or capture groups.
Examples: The command parameter could be used to /hadd a series of <key> <data> fields to a hash table from JSON or XML outputs. It can be used to easily break up a string of switch parameters into a series of correctly named %variables. It would add a level of convenience for handling long and complex lists without the need for building while loop, and nested while loop constructs.
Command parameters are one of the more interesting aspects of this language.
<Cue the Wims!>