title: How to force white space in string in javascript
body: <p>I create a function to check if string have a good French social number format</p>
  
  <pre><code>function isValidNoSecu(Tel) { return new RegExp(/[12]\s{1}\d\d\s{1}\d\d\s{1}\d\d\s{1}\d\d\d\s{1}\d\d\d\s{1}|\s{1}\d\d$/i).test(Tel); }
  </code></pre>
  
  <p>The string must have this form : X XX XX XX XXX XXX | XX
  First X is 1 or 2 Nothing other
  I need space (this is my biggest problem) I try \s or \s{1} or [ ] always accepting no space... and I want a space. In fact, the best response will be with just one space caracter not tab... then \s not good
  Other X are digits : \d</p>
  
  <p>I read lot of tutos, posts and try several tester but I don't find good regex
  Thanks for your help</p>