title: perl replace space with tab
body: <p>I would like to replace each two spaces from the beginning of each line, with a tab.
  I tried the following:</p>
  
  <pre><code>s/^(\s{2})+/\t/gm;
  </code></pre>
  
  <p>it didnt work.</p>