$regml(1) will return the part of a string last checked against a regex identifier (such as $regex()) that matches the regex pattern first (if groups are used)
For example, if you have:
$regex(good morning,/(mor)/Si)
then
$regml(1) will return
morOf course, you will have to use $regml(1) after the $regex($1-,%links)