Javascript Replace text in string
I'm having some troubles getting regex to replace all occurances of a string within a string.

    **What to replace:**
    href="/newsroom
    
    **Replace with this:**
    href="http://intranet/newsroom


This isn't working:

    str.replace(/href="/newsroom/g, 'href="http://intranet/newsroom"');

Any ideas?

Thanks,
Tegan
Javascript Replace text in string
===

I'm having some troubles getting regex to replace all occurances of a string within a string.

    **What to replace:**
    href="/newsroom
    
    **Replace with this:**
    href="http://intranet/newsroom


This isn't working:

    str.replace(/href="/newsroom/g, 'href="http://intranet/newsroom"');

Any ideas?

Thanks,
Tegan