title: sed: how to extract a part of a line containing colon
body: <p>I want to extract the date part inside parentheses with sed:</p>
  
  <pre><code># Equ_time  =  959240309.430000 (26-May-2015 07:38:29)
  </code></pre>
  
  <p>I use this code:</p>
  
  <pre><code>sed -n 's:# Equ_time  =  [0-9]*.[0-9]* .\([0-9]*.[A-Z]*.[0-9]*.[0-9]*.[0-9]*.[0-9]*\).*:\1:p' file.txt
  </code></pre>
  
  <p>but it returns:</p>
  
  <pre><code>26-May-2015 07
  </code></pre>
  
  <p>I think the problem is related to colon character in time section, How should I change the command to work fine?</p>