title: Java Regex Parse URL
body: <p>I have a FTP URL, and have to parse the URL to get the username, password, server name and the directory.  What can be the regular exp to do it?</p>
  
  <p>ex: <a href="ftp://userName:password@someServer/direcory-name" rel="nofollow">ftp://userName:password@someServer/direcory-name</a></p>