Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


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

Posted on 2008-11-12
Medium Priority
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

azadisaryev earned 2000 total points
ID: 22947458

Author Comment

ID: 22947587
Perfect. Thanks! :)

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

CFGRID Custom Functionality Series -  Part 1 Hi Guys, I was once asked how it is possible to to add a hyperlink in the cfgrid and open the window to show the data. Now this is quite simple, I have to use the EXT JS library for this and I achiev…
A quick Powershell script I wrote to find old program installations and check versions of a specific file across the network.
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)
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

580 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