title: How to extract value from the string in bash?
body: <p>I have an input string in the following format: </p>
  
  <pre><code>bugfix/ABC-12345-1-00
  </code></pre>
  
  <p>I want to extract "ABC-12345". Regex for that format in C# looks like this: </p>
  
  <pre><code>.\*\\/([A-Z]+-[0-9]+).\*
  </code></pre>
  
  <p>How can I do that in a bash script? I've tried sed and awk but had no success because I need to extract value from the capturing group and skip the rest.</p>