fork(1) download
  1.  
  2.  
  3. var str = "AAACDEAAAABBBUUDD";
  4. var res = str.replace( /(.)\1{2,}/g, "<b>$&</b>");
  5. print( res );
Success #stdin #stdout 0s 172608KB
stdin
Standard input is empty
stdout
<b>AAA</b>CDE<b>AAAA</b><b>BBB</b>UUDD