Bad regex safari find & replace


I would like to find and replace the end of a multi-input field (after “Bonjour” using regex). It works well with Chrome but since Safari does not support lookahead/behind I got this error on this browser : “bad regex format : invalid regular expression: invalid group specifier name”

The regex I use :



Check this out

I think your expression may be off.

Thanks for your reply.
It works well on Chrome, and on the test site you sent me

The problem is that lookbehind & lookahead are not supported in Safari

Found the solution, quite complex though :


This topic was automatically closed after 70 days. New replies are no longer allowed.