
Essentially I need a way to capture the first, second, third, and fourth value separated by an underscore.
Code: Select all
var theRegex = /(.*)_(.*)_(.*)_(.*)_.*/;
theRegex.search( job.getNameProper() );
var theCompleteMatch = theRegex.cap(0);
var thePlateID = theRegex.cap(1);
//...