You can also express this slightly more naturally, at the cost of a slightly less efficient regexp:
that is: match two numbers then (as long as the next number isn't in the range 0 .. 3) match two more numbers.if (/^(\d+\.\d+\.(?![0-3]\.)\d+\.\d+)/) { print ... }
Hugo
In reply to Re: Question about conditional regex capture
by hv
in thread Question about conditional regex capture
by TASdvlper
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |