fork(1) download
  1. m = /(0+)(1+)/.match('0011');
  2. puts m[1].length === m[2].length ? "True" : "False";
  3.  
  4. m = /(0+)(1+)/.match('00111');
  5. puts m[1].length === m[2].length ? "True" : "False";
Success #stdin #stdout 0.01s 7412KB
stdin
Standard input is empty
stdout
True
False