$regex will only return all matches if the /g modifier is specified. In absence of it, it immediately returns on matching (or no matching), meaning it will either evaluate to 0 or 1.

Heh, once I had plans to write the "ultimate regex tutorial" named the "Regex Bible", but then I got a fulltime job and everything changed. mIRC is just a memory now :tongue:

Oh well, happy scripting to all smile


Gone.