in reply to IP Filtering RegEx needed

It's usually easier to to do the range check outside the regex, eg
print "$IP\n" if $IP =~ /^135\.168\.(\d+)\.(\d+)$/ and $1 >= 10 and $1 <= 115 and $2 >= 0 and $2 <= 125;

Dave.