fork(1) download
  1. m = /\b(0(\g<1>)?1)\b/.match('000111');
  2. puts m;
  3.  
Success #stdin #stdout 0.01s 7452KB
stdin
Standard input is empty
stdout
000111