var numDoc = "РНП-У-08/15-016";datePart = numDoc.replace(/^.+?(\d+[\/\-]*\d*[\/\-]*)0*(\d*)$/, "$1$2");print(datePart);
Standard input is empty
08/15-16
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!