mpdreamz had a point, what if expression failed to match the string? obviously i'd expect $null to be returned, nothing else would make sense since any string could be matched by a capturing group in a regex. but $regml(N) itself could return $null even when the match was successful and the Nth back reference exists
//echo -a $regex(abc,/(x?)abc/) * $regml(0) * $len($regml(1))
maybe for your specific purpose it wouldnt matter if the expression was matched and $null captured as $regml(1) or if it didn't match at all, but since there would be no immediate way to determine this from $regexex, i dont think it would make a very 'complete' addition to mirc :x its definitey, imo, something that's better left as a custom identifier