- cfregex/src/functions/RegexFind.cfm
- 548 B
- 8
1<cffunction name="RegexFind" 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" default=1 />
5 <cfargument name="Limit" type="Numeric" default=0 />
6 <cfargument name="ReturnType" type="String" default="pos" />
7 <cfargument name="Flags" type="String" optional />
8 <cfreturn new Regex(ArgumentCollection=Arguments,FuncName="find").find(ArgumentCollection=Arguments) />
9</cffunction>