...or - if you don't want to capture at all - put the expression-with-commas in a variable and use $regex([name],text,%expression)

Another secondary note:
if you want to match valid IPs a bit more reliable (e.g. no match on 355.1.2.3) you may use this expression (I didn't write it):
Code:
var %reg = /\b((?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))\b/
if ($regex(ip,$3-,%reg)) { echo -ag first IP match: $regml(ip,1) }
(no need to put this one into a var, just a matter of preference) smile