Quote:
Maybe $regsubex() could support its own output variable.

The only issue is that because the name parameter is optional in $regsubex(), adding a new parameter means that mIRC will not be able to tell which parameters you have specified. There are several options:

1) Make it work like $regsub(), ie. output to %var and return N, on condition that the name parameter is always specified. In cases where you are using the default regex result, you would need to specify "default" as the name.

2) Add a property .var that makes it assume that the last parameter is an output %var and return N. An odd use of a .property as a behaviour modifier but not unprecedented.

3) Add a new $regsubex2() identifiter.