--- --------------------------------------------------------------------------------------- ----
Blog Entry:
REReplace ColdFusion Custom Tag - Another Regular Expression Experiment
Author:
Ben Nadel / Kinky Solutions
Link:
http://www.bennadel.com/index.cfm?dax=blog:1479.view
Date Posted:
Feb 2, 2009 at 11:37 AM
---- --------------------------------------------------------------------------------------- --->
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.
function( $0, $1, $2 ){
// Check to see if the first group was found (the HTTP)
// part of the URL. If not, then we need to add it to
// the HREF so that the link doesn't stay internal.
if (Len( $1 )){
return( "#$0#" );
} else {
return(
"#$0#"
);
}
}
#HtmlEditFormat( strText )#