As I mentioned in this thread, we don't have access to the full match and its position made by the pcre engine, it's not that useful most of the time but in some cases it can.

I'd use it for a bot, to show the capturing group and what is matched, something like !regex /b+a.*c/ bbbbadddc would be shown as bbbbadddc for example.

My proposed syntax in that link is not so great though, it doesn't allow us to get the position of the full match.
So I suggest $regmlex([name],M,[N],full) to return the full match, where the .pos property could be used.


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