I have this regular expression, which will do a positive look behind on the word google, and I have tested it for validity using the website regex101.com, which showed me that it works:
(?<=google).*
I have used it in JavaScript like so:
var regex = new RegExp('(?<=google).*');
someString = "google everything!";
console.log(someString.match(regex)[0]);
The console log should return everything!
with a space behind it, basically all characters excluding new lines after the word google.
I have also tried without the need of creating a new RegExp object like so:
var someString = "google everything!";
console.log(someString.match(/(?<=google).*/)[0]);
... but I get the same error:
Uncaught SyntaxError: Invalid regular expression: /(?<=google).*/: Invalid group