$regex is returning an integer (// or empty regex always match so it would return 1), not empty string, but your points remain the same and the behavior is correct.


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