<cfsavecontent variable="strText">
Have you ever been to www.bennadel.com? It's a wicked cool
site. If you haven't you might want to check out
http://www.bennadel.com/projects/; it has a list of neat
ColdFusion-based projects that Ben is working on.
</cfsavecontent>
<cf_rereplace
text="#strText#"
pattern="(?i)(http://)?(www\.[\w\-\./]+[\w|/])"
returnvariable="strText">
function( $0, $1, $2 ){
if (Len( $1 )){
return( "<a href=""#$0#"" target=""_blank"">#$0#</a>" );
} else {
return(
"<a href=""http://#$0#"" target=""_blank"">#$0#</a>"
);
}
}
</cf_rereplace>
<cfoutput>
#HtmlEditFormat( strText )#
</cfoutput>