I have a regular expression to find the next word of given word 'on' in string for php:
(?<=\bon\s)(\w+)
It works perfectly for PHP but for js it gives following error:
Uncaught SyntaxError: Invalid regular expression: /(?<=\bon\s)(\w+)/: Invalid group
What is the equivalent regex for javascript?