Regex needed to change urls to a href's (links) within a string; Coldfusion

Posted on 2008-11-12
Last Modified: 2012-08-13
I'm looking for a Coldfusion code snippet to parse a block of text and convert any of the following plain text sub-strings:

to hyperlinks.

I know this can be done using the rereplacenocase command; I just don't know how! :) I've never really understood regex's and need this ASAP to finish off some work on a site.

An example of how to do this in PHP is here:
...under the 'Matching a URL' heading.

Basically, I'd like some code to replicate this in Coldfusion (MX7).
Question by:alternativeit
    LVL 27

    Accepted Solution


    Author Comment

    Perfect. Thanks! :)

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    PROBLEM: How to add your own buttons to the bottom toolbar with paging info ( result count ). While creating a cfgrid, I ran into an issue where I wanted to embed my own custom buttons where the default ones ( insert / delete / etc… ) are for aes…
    This article will show, step by step, how to integrate R code into a R Sweave document
    Learn the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…
    The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now