I have a simple program that looks up details of an IP you give it, and I will show you an example of some of my code

```
int regIndex = src.indexOf("Region:") + 16;
int endIndex = src.indexOf("<", regIndex);
String region = src.substring(regIndex, endIndex);
if(regIndex == 15) region = "None";
int counIndex = src.indexOf("Country:") + 17;
int couneIndex = src.indexOf(" <", counIndex);
String country = src.substring(counIndex, couneIndex);

```

As you can see, it is definitely not the most efficient way to do this. The website I am using gives the information like this: <http://whatismyipaddress.com/ip/1.1.1.1>

I have never really used Regular Expressions before, but it seems to me like there might be one that could really make this more efficient and easier to program, but I've been looking around and I'm pretty lost. 

So basically my question is, how could I use a Regular Expression for this (Or if there is another more efficient way).

Any help would be great,
Thanks :)