- cfregex/src/functions/RegexMatches.cfm
- develop
- 465 B
- 6
1<cffunction name="RegexMatches" returntype="any" output="false" >
2 <cfargument name="Pattern" type="String" required=true />
3 <cfargument name="Text" type="String" required=true />
4 <cfargument name="ReturnType" type="String" optional hint="exact,partial,start,end,count" />
5 <cfargument name="Flags" type="String" optional />
6 <cfreturn new Regex(ArgumentCollection=Arguments,FuncName="matches").matches(ArgumentCollection=Arguments) />
7</cffunction>