JSFiddle - React, Tailwind, and code Playground
by gopi1410
JavaScript
resStr="SHOWONLY_Clearance/Closeout\
(21).";
//or resStr="SHOWONLY_Clearance/Closeout\n(21).";
var substr = resStr.split('_');
alert(substr[0]);
alert(substr[1]);
by gopi1410
resStr="SHOWONLY_Clearance/Closeout\
(21).";
//or resStr="SHOWONLY_Clearance/Closeout\n(21).";
var substr = resStr.split('_');
alert(substr[0]);
alert(substr[1]);