title: How to format mobile phone number with country code using regex
body: <p>I have been trying to format properly the phone number so that all country can use at least. I am trying to use this format to accept as many regions as possible
  Here is my pattern</p>
  <pre><code>$pattern = '^\+[0-9]?()[0-9](\s|\S)(\d[0-9]{9})$^'; 
  </code></pre>
  <p>the pattern matches well these formats but once I add a country code with 3 digits and space, it
  fails</p>
  <pre><code>+441213315000
  +1 2323214316
  +2923432432432
  </code></pre>
  <p>I would like to match this format</p>
  <pre><code>+225 0546568022
  </code></pre>