title: Regular expression to match phone numbers with country codes
body: <p>This is the regular expression I use to match phone numbers like:</p>
  
  <pre><code>00 00 00 00 00
  00 00 0 00 00 00 00
  +00 0 00 00 00 00
  
  (\d{2}\s+\d{2}\s+\d{2}\s+\d{2}\s+\d{2})\s+(\d{2}\s+\d{2}\s+\d\s+\d{2}\s+\d{2}\s+\d{2}\s+\d{2})\s+(+\d{2}\s+\d\s+\d{2}\s+\d{2}\s+\d{2}\s+\d{2})
  </code></pre>
  
  <p>I have tried to include it into my javascript but It's not really working</p>
  
  <pre><code>if(document.maj_profil.phone.value.search(/^\(\d{2}\s+\d{2}\s+\d{2}\s+\d{2}\s+\d{2}\)\s+\(\d{2}\s+\d{2}\s+\d\s+\d{2}\s+\d{2}\s+\d{2}\s+\d{2}\)\s+\(+\d{2}\s+\d\s+\d{2}\s+\d{2}\s+\d{2}\s+\d{2}\)/) == -1)
      {
      displayDialog('wrong phone format')
          }
  </code></pre>