and you matched against it ending with 999 with the /m option, it would also work. For example using this regex would yield a pass for the regex:
/m just treats the $string as a multi-line string and if it finds 999 at the end of any line in $string (remember $ means before the newline) then the regex would still work. I thought i'd just throw that in cuz it was useful :).