title: Extract phone number from text in python
body: <p>I want to extract phone number from text. I able to extract phone number from text when all digits are presents on single line. But When some digits are present in next line then regex is not working.</p>
  
  <p>Here is my text:</p>
  
  <pre><code>I will be out of the office. Please send me an email and text my mobile +45
  20 32 40 08 if any urgency.
  </code></pre>
  
  <p>In above text <strong>+45</strong> is on first line and <strong>20 32 40 08</strong> presents on second line. I unable to extract phone numbers from text when text like above text. When digits are present on same single line then it's working fine.</p>
  
  <p>Here is my regex:</p>
  
  <pre><code>reg_phonestyle = re.compile(r'(\d{2}[-\/\.\ \s]??\d{2}[-\/\.\ \s]??\d{2}[-\/\.\ \s]??\d{2}[-\/\.\ \s]??\d{2}|\(\d{3}\)\s*\d{3}[-\/\.\ \s]??\d{4}|\d{3}[-\/\.\ \s]??\d{4})')
  </code></pre>