title: Translation bash to tcsh, if with pattern
body: <p>I hava following code in bash:</p>
  
  <pre><code>if  [[ $a =~ ^[+-]?([0-9]+\.?[0-9]*|[0-9]*\.?[0-9]+)([DdEeQ][+-]?[0-9]+)?$ ]]; then
  </code></pre>
  
  <p>How can I do this in tcsh? I tried: </p>
  
  <pre><code>if  ( $a =~ {^[+-]?{[0-9]+\.?[0-9]*\|[0-9]*\.?[0-9]+}{[DdEeQ][+-]?[0-9]+}?\$} ) then
  </code></pre>
  
  <p>It doesn't work.</p>