Whatever message this page gives is out now! Go check it out!
REReplaceNoCase(string, reg_expression, substring [, scope ])Parameter | Description |
string | A string or a variable that contains one. |
reg_expression | Regular expression to replace. For more information, see Using Regular Expressions in Functions in the Developing ColdFusion Applications. |
substring | A string or a variable that contains one. Replaces reg_expression. |
scope |
|
<cfscript>
writeOutput(REReplace("CABARET","C|B","G","ALL") & "<br/>")
writeOutput(REReplace("CABARET","C|B","G","ALL") & "<br/>")
writeOutput(REReplace("CABARET","[A-Z]","G","ALL") & "<br/>")
writeOutput(REReplace("CABARET","[A-Z]","G","ALL") & "<br/>")
writeOutput(REReplace("I love jellies","jell(y|ies)","cookies") & "<br/>")
writeOutput(REReplace("I love jellies","jell(y|ies)","cookies") & "<br/>")
writeOutput(REReplace("I love jelly","jell(y|ies)","cookies") & "<br/>")
writeOutput(REReplace("I love jelly","jell(y|ies)","cookies") & "<br/>")
</cfscript>