Sorcerer's IsleCode cfRegex / files

 1<cffunction name="RegexReplace" returntype="String"  output="false" >
 2	<cfargument name="Pattern"      type="String"  required=true />
 3	<cfargument name="Text"         type="String"  required=true />
 4	<cfargument name="Replacement"  type="Any"     optional hint="String,Array,Function"/>
 5	<cfargument name="Start"        type="Numeric" optional  />
 6	<cfargument name="Limit"        type="Numeric" default=0 />
 7	<cfargument name="GroupNames"   type="any"     default="" hint="Passed into Callback function if provided" />
 8	<cfargument name="CallbackData" type="Struct"  optional   hint="Extra data which is passed in to callback function." />
 9	<cfargument name="Flags"        type="String"  optional />
10	<cfreturn new Regex(ArgumentCollection=Arguments,FuncName="replace").replace(ArgumentCollection=Arguments) />
11</cffunction>