This is an on-going list of things that I constantly find missing in Safari, (and possibly ways to work around them)
I cannot believe my eyes when positive/negative lookbehind is still not available on safari. Here is how you can work around it:
Instead of
'abcae'.replaceAll(/(?<=a)./g, '*') // yields 'a*ca*'
We can use $n
to put back the matched "lookahead". See more here.
'abcae'.replaceAll(/(a)./g, '$1*') // yields 'a*ca*'