It's kinda hard to see in the giant MDN Assertions Browser Compatibility Table, so here's why, if you still support IE or Safari at all, you don't get to use lookbehinds yet.

I'm not working with a transpiler right now [sic], but wonder if they're smart enough to parse regexes as part of the transpilation process. My guess would be no, but they should at least throw an error if you've got something your target doesn't support if they don't. Not going to check now, but I should. (note to self)


desktopDesktop

Chrome Edge Firefox Internet Explorer Opera Safari
lookbehind assertions ((?<= ) and (?<! ))

Labels: , , ,