<!--- Match the multiline string from start to end. Run this expression as a non-greedy search. ---> <cfset strText = strText.ReplaceAll( "(?m)(^[\w\W]+?$)", "BEGIN::$1::END" ) />