Lets say you have a string like this:
198<string>12<string>88<string>201
Yes that looks like an IPv4 address, because it is one.
How do i check to see if there are repeated patterns in a string? I've no idea where to start, and im not sure that regex would help since i dont really know what string to look for, just that it will be repeated.
The goal here is to strip <string>
from the main string.
Okay lets say the string is:
String test = "112(dot)115(dot)48(dot)582";
if(isIP(test){
System.out.println("Yep, it's an ip");
}
The output should be:
Yep, it's an ip
The seperator (dot) will always be different.