Replacing urls with anchor tags

Discussion in 'Perl Misc' started by laredotornado, Nov 9, 2010.

  1. Hi,

    I'm using Perl 5.8.9 on Mac 10.6.3. Does anyone have a handy regular
    expression for replacing URLs with an anchor tag reference? I
    stumbled across a couple of suggestions online ...

    http://www.webmasterworld.com/forum13/4227.htm

    but the second one falsely replaced

    sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:
    726)

    with

    sun.net.<a href="http://
    www.protocol.http.HttpURLConnection.conne">www.protocol.http.HttpURLConnection.conne</a>ct(HttpURLConnection.java:726)


    Thanks, - Dave
     
    laredotornado, Nov 9, 2010
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Kaidi
    Replies:
    5
    Views:
    485
    Andrew Thompson
    Jan 4, 2004
  2. Nathan Sokalski

    Converting Relative URLs into Absolute URLs

    Nathan Sokalski, Aug 11, 2008, in forum: ASP .Net
    Replies:
    1
    Views:
    756
    Sriram Srivatsan
    Aug 12, 2008
  3. Adam Monsen

    JDBC URLs ...not really URLs?

    Adam Monsen, Feb 6, 2009, in forum: Java
    Replies:
    11
    Views:
    6,266
    Adam Monsen
    Feb 8, 2009
  4. Steve T.

    dynamic URLS convert to static URLS for search engines

    Steve T., Mar 1, 2004, in forum: ASP .Net Web Services
    Replies:
    7
    Views:
    303
    Steve T.
    Mar 4, 2004
  5. replacing tags between tags

    , Sep 18, 2005, in forum: Perl Misc
    Replies:
    9
    Views:
    135
    J├╝rgen Exner
    Sep 19, 2005
Loading...

Share This Page