The following 2 regexes work as I expect them to, at www.regxr.com If I run a sample in the browser's console the match seems to ignore the positive lookahead. Does this mean the browser (chrome) does not support it?
let regex1 = new RegExp(/(?<=uploaded\s+).*(?=\s+new file)/gi);
let regex2 = new RegExp(/(?<!-)\d+(?=\s+-)/gi);
let input = 'Hi UPR, ' +
'Ryan Anderson uploaded one new file to your request for Fname Lname - 743245 - CS4:' +
'Ryan Anderson - Screen Shot 2020-06-08 at 1.10.39 pm.png ' +
'See new files'
let matches = [];
while ((matches = regex1.exec(input)) !== null) {
console.log(`Found [${matches[0]}]. Next starts at ${regex1.lastIndex}.`);
}