title: Extract substrings from a String
body: <p>I'm new to shell programming.</p>
  
  <p>I have a String representation of a db connection looking like that:</p>
  
  <pre><code>&lt;user&gt;:&lt;password&gt;@&lt;host&gt;
  </code></pre>
  
  <p>And I would like to extract each attribute (user, password and host) from the String.</p>