I have a problem with designing a regular expression to extract a value from JavaScript code.
I need to find the line where Array('38') is and get the numeric value of the Math.floor function's argument there.
Given this code, the result would be 296:
addCombination(158, new Array('38'), -9, Math.floor(296), 0, -1, 'LB229');
addCombination(159, new Array('39'), -2, Math.floor(221), 0, -1, 'LB201');
addCombination(160, new Array('40'), -2, Math.floor(201), 0, -1, 'LB243');
Thanks for advice.
Math.floor(296)if a line containsArray('38')? Or the substringMath.floor(296)?