JavaScript Regular expressions, match and replace link

Posted by Thoman on Stack Overflow See other posts from Stack Overflow or by Thoman
Published on 2010-06-15T15:30:15Z Indexed on 2010/06/15 15:32 UTC
Read the original article Hit count: 217

Filed under:
|

Hello please help me

 <html>
  <body>
       http://domainname.com/abc/xyz.zip
       http://domainname2.com/abc/xyz.zip 

 </body>
 </html>

I want replace with link and out put like

 <html>
  <body>
      <a href="http://domainname.com/abc/xyz.zip">http://domainname.com/abc/xyz.zip</a>
      <a href="http://domainname2.com/abc/xyz.zip">http://domainname2.com/abc/xyz.zip</a>

 </body>
 </html>

Great Thank

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about regex