fork(3) download
  1. var numDoc = "РНП-У-08/15-016";
  2. datePart = numDoc.replace(/^.+?(\d+[\/\-]*\d*[\/\-]*)0*(\d*)$/, "$1$2");
  3. print(datePart);
Success #stdin #stdout 0.29s 213248KB
stdin
Standard input is empty
stdout
08/15-16