$regmlex is meant to be an improved/fixed version of $regml.

All identifiers which return a Nth item in a collection has to be looped over to get all the items, this is how it works in others languages, but these languages certainly have their own way to handle this better.
But if anything, this would be a problem for you for all identifiers like that (except for $hfind and a few others) since they all require the same number of lines.

Quote:
I don't know that there would be fair objection to automatically storing the data to a local variable, seeing as you can choose the names yourself
it simply breaks backward compatibility:

Code:
alias test {
var %a 5
noop $regex(a,(?<a>.*))
echo -a %a
}
would then echoes "a" instead of "5".


I believe you're only looking for a way to make your life easier by suggesting something about a different feature here, I'm not a big fan.
However, like I said, I still think we should have something like

noop $regex(test,string,/([a-z])([a-z])/g)
noop $regmlex(test, 0, 0,echo -a match number: $1 - capture number: $2)

You would just use /var instead of echo to create your local variable accordingly, maybe $3 could be the name of the capture if any, if support for named captures is added.


#mircscripting @ irc.swiftirc.net == the best mIRC help channel