title: regex split string and keep delimiters in awk
body: <p>As far as I can see, if I want to split a string with regex, and keep the delimiters in <a href="https://stackoverflow.com/questions/14907772/split-but-keep-delimiter">Perl</a>, <a href="https://stackoverflow.com/questions/18689045/split-equation-string-by-multiple-delimiters-in-javascript-and-keep-delimiters-t">JavsScript</a> or <a href="https://stackoverflow.com/questions/16006590/split-a-string-while-keeping-delimiters-and-string-outside">PHP</a>, I should use capturing parentheses / group in the regex; e.g. in Perl (where I want to split at a single digit and right parenthesis):</p>
  
  <pre><code>$ echo -e "123.123   1)  234.234\n345.345   0)  456.456" \
  | perl -ne 'print join("--", split(/(\d\))/,$_));'
  123.123   --1)--  234.234
  345.345   --0)--  456.456
  </code></pre>
  
  <p>I'm trying the same trick in <code>awk</code>, but it doesn't look like it works (as in, the delimiters are still "eaten", even if a capturing group/parentheses are used): </p>
  
  <pre><code>$ echo -e "123.123   1)  234.234\n345.345   0)  456.456" \
  | awk '{print; n=split($0,a,/([0-9]\))/);for(i=1;i&lt;=n;i++){print i,a[i];}}'
  123.123   1)  234.234
  1 123.123   
  2   234.234
  345.345   0)  456.456
  1 345.345   
  2   456.456
  </code></pre>
  
  <p>Can <code>awk</code> be forced to keep the delimiter matches in the array which is the result of split?</p>