- cfregex/src/functions/RegexCompile.cfm
- develop
- 276 B
- 4
1<cffunction name="RegexCompile" returntype="Regex" output="false">
2 <cfargument name="Pattern" type="String" required=true />
3 <cfargument name="Flags" type="String" optional />
4 <cfreturn createObject("component","Regex").init(ArgumentCollection=Arguments) />
5</cffunction>