Quote:


Yuck! Instr() will give you false positives on partials. F.E. you will find '1' in '1','10','101', etc.

I think you are taking a bad approach. Look at some of the subnet UDFs or read up on it in the FAQ.

Alternately, put all the octets into an array and use ASCan() which does not return partials.





True, better options are available indeed. But if not searching for octets containing one or two digits the above given examples could be a quick and dirty option for doing some emergency stuff.
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.