title: Regular expression problem (extracting one text or another)
body: <p>I have problem with regex. I've been playing with it for three hours and I didn't find out anything working. </p>
  
  <p>I have this text:</p>
  
  <pre><code>Fax received from 45444849 ( 61282370000 )
  </code></pre>
  
  <p>And I need to extract the number from brackets, so I will get <code>61282370000</code>. If there is nothing (or whitespaces only) in brackets it should take the number before brackets. I have only managed to do this expression, which takes the number from brackets correctly:</p>
  
  <pre><code>Fax received from .* \(\s([^)]*)\s\)$
  </code></pre>
  
  <p>Thanks.</p>