title: Get IP address from a String(Groovy)
body: <p>I want to extract the IP and return it . Something like </p>
  
  <pre><code>def getIPfromString ( myString ) {
  
    ..
    return IP 
  }
  
  IP = getIPfromString("ftp://192.168.13.108/720_prev")
  print " IP Address : " + IP
  </code></pre>
  
  <p>Output :</p>
  
  <pre><code>IP Address : 192.168.13.108
  </code></pre>