in reply to IP Number Regex

It might help if you showed the code you're using to assign the values to the test strings and process the $DIGIT variables after the pattern match. It's always possible that the strings you're attempting to match are not what you intended, or that a side-effect of the way you're using the data is causing truncation. Just a thought.

conv