I just learned the hard way that negative lookbehinds are not supported in firefox. Just deployed to production and all seemed fine. Once our firefox users started hitting it, they got nothing.
Is there a pollyfill or some alternative to this regex?
"Item 1, Item2^, Item2a, Item3".split(/(?<!\^),/)
I am trying to split a string into arrays on a commas but not on ^,
"Item 1, Item2^, Item2a, Item3"
Should end up as
[
"Item 1",
"Item2^, Item2a",
"Item3"
]