title: Getting substring value in Chef ruby
body: <p>I have a string that has the following value:</p>
  
  <pre><code>ucp-1.1.0_dtr-2.0.0
  </code></pre>
  
  <p>I am trying to fetch only <code>1.1.0</code> from the string.  I am using the following code but it doesn't seem to work  </p>
  
  <pre><code>substring = ucp-1.1.0_dtr-2.0.0.gsub('ucp-','')
  </code></pre>