How to replace string while creating variable using GREP search pattern
// constraints are:
// XX T will always be first and in caps ==> ^XX T
// T will always have a value of max of 2 digits ==> {1,2}
// L may or may not be present but if present will always have a value of max of 2 digits ==> {1,2}
// the digits of L if present will always be the end of the string ==> (/\d+$/)
var testName1 = "XX T3 L22"; // viable upper case search(/^XX T\d{1,2}( L\d{1,2}$)/g)
var testName2 = "XX T44 L1";
var testName3 = "XX T5"; // viable upper case search(/^XX T\d{1,2}$/g)
var testName4 = "XX T66;
// for testName1 ==> lNumber1 = 22
