title: Split arraylist for specific info from a URL?
body: <p>I'm a bit confused with how to split my arraylist, loop thru the list, and pull out only specific info.</p>
  
  <p>I have an arraylist of 20 URLs: 
  <br>
  "<a href="http://xxxx.websitename.com:1234/aaa/bbb/ccc" rel="nofollow">http://xxxx.websitename.com:1234/aaa/bbb/ccc</a>"
  <br>
  "<a href="http://yyyy.websitename.com:5678/aaa/bbb/ccc" rel="nofollow">http://yyyy.websitename.com:5678/aaa/bbb/ccc</a>"
  <br>
  etc.....</p>
  
  <p>And I want to be able to have the results pull only: 
  <br>
  xxxx 1234
  <br>
  yyyy 5678</p>
  
  <p>How do I get this started if I want the above as my result?  I can find how to do it as a string, but no good example as an array list.</p>
  
  <pre><code>public class HealthCheck {
  
  public static void main(String[] args) {
  
  ArrayList arlURL = new ArrayList();
  arlURL.add("http://xxxx.websitename.com:1234/aaa/bbb/ccc");
  arlURL.add("http://yyyy.websitename.com:5678/aaa/bbb/ccc");
  
  System.out.println(arlURL);
  </code></pre>