I have this regex (?<![\n])[\n]{1}(?![\n]) in my Javascript code, and as I understand Safari just doesn't support negative look behinds.
What I need to do is replace all \n that are not surrounded by other \n and replace them with a string.
Can someone please help me figure out how to write that Regex so that it is usable in Safari?
Thank you.