I'm trying to match the following string a2eaa37edefd4a1e9bb0d082e441cd4e
When trying my regex in node, I'm getting Invalid regular expression, valid group
I have learned that not all flavors of javascript supports positive lookbehind
var url = 'http://file-store.example.local/files/a2eaa37edefd4a1e9bb0d082e441cd4e+1a3e5372-8fb2-44df-82ed-5603e3a1d72c'
var regex = /(?<=files\/)(.*?)(?=\+|\-)/g;
console.log(url.match(regex));
Any ideas on how I can get same results with different regex?