RegEx to get numbers between periods in IP address?

regex

Solution

If it is just to extract the numbers from the IP and not to validate the IP address then you could just do:

[0-9]

However, I think a simple `String.Split(".")` would be an easier option.

Problem

Say you have an IP address: 74.125.45.100 so its A.B.C.D Is there a way to use RegEx to get A,B,C separately?

Original source