Sorcerer's IsleCode cfRegex / files

 1<cffunction name="RegexSplit" returntype="Array" output="false" >
 2	<cfargument name="Pattern"      type="String"  required=true />
 3	<cfargument name="Text"         type="String"  required=true />
 4	<cfargument name="Start"        type="Numeric" optional  />
 5	<cfargument name="Limit"        type="Numeric" default=0  hint="The maximum number of times a split is made (i.e. limit+1=max array size)"/>
 6	<cfargument name="GroupNames"   type="any"     default="" hint="Passed into Callback function if provided" />
 7	<cfargument name="Callback"     type="any"     optional />
 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="split").split(ArgumentCollection=Arguments) />
11</cffunction>