Thanks for your bug report. The regex tester here shows the same result as mIRC. Interestingly, other online regex testers show different results, and one regex tester reports \G as an invalid escape and refuses to parse the regex. If you change \G to G, $regml() reports 0 matches.