My Regular expression is :
/(url="\S+")/
And my string is
<code url="http://ns.adobe.com/textLayout/2008"><p>"test"</p></code>
I want replace this url value with an empty string.
str=str.replace(/(url="\S+")/, "");
but the output is coming like
<code </p></code>
I want the output like:
<code ><p>"test"</p></code>
Can anyone tell me what's my mistake???