You would put the {1,3} after the item in question i.e. [0-9]{1,3} for each of the octets (also \d[0-9]{1,3} should work as it will match a numeric digit one, two or three times).
Be aware though this will still match numbers larger than 255 but less than 1000 so you might need to either modify the expression to only match 0 - 255 for a range.
What are you doing with the numbers when you get them? Only asking because it might be easier to us a regex to find the things that look like ip addresses and then eliminate the invalid ones via VB / C# later on.