fork download
  1. console.log(
  2. '10 - 89 - 90'.replace(/(\d) - (\d)/g, "$1-$2")
  3. );
Success #stdin #stdout 0.03s 16720KB
stdin
Standard input is empty
stdout
10-89-90