in reply to Question about conditional regex capture

You can also express this slightly more naturally, at the cost of a slightly less efficient regexp:

if (/^(\d+\.\d+\.(?![0-3]\.)\d+\.\d+)/) { print ... }
that is: match two numbers then (as long as the next number isn't in the range 0 .. 3) match two more numbers.

Hugo