- cfregex/src/functions/RegexEscape.cfm
- develop
- 390 B
- 5
1<cffunction name="RegexEscape" returntype="String" output="false" >
2 <cfargument name="Pattern" type="String" required=true />
3 <cfargument name="ReturnType" type="String" default=REGEX hint="regex|class" />
4 <cfargument name="Flags" type="String" optional />
5 <cfreturn new Regex(ArgumentCollection=Arguments,FuncName="escape").escape(ArgumentCollection=Arguments) />
6</cffunction>