JavaScript regex: Not starting with
I want to replace all the occurrences of a string that doesn't start with "`<pre>`" and doesn't end in "`</pre>`".

So let's say I wanted to find new-line characters and replace them with "`<p/>`". I can get the "not followed by" part:

    var revisedHtml = html.replace(/[\n](?![<][/]pre[>])/g, "<p/>");

But I don't know the "not starting with" part to put at the front.

Any help please? :)
JavaScript regex: Not starting with
===

I want to replace all the occurrences of a string that doesn't start with "`<pre>`" and doesn't end in "`</pre>`".

So let's say I wanted to find new-line characters and replace them with "`<p/>`". I can get the "not followed by" part:

    var revisedHtml = html.replace(/[\n](?![<][/]pre[>])/g, "<p/>");

But I don't know the "not starting with" part to put at the front.

Any help please? :)