I am parsing an IP, and I don't care about anything, but the IP. Here is what I have, but I don't care what follows after the '10', and just want to know if the String matches the IP:
[0-9]{1,3}\\.[0-9]{1,3}\\.(16|249)\\.10
What can I add into this to make it ignore everything else? This IP will be at the very beginning of the String every time as well.
.*after the10? What does your string look like? How do you use the regex?