Whatever message this page gives is out now! Go check it out!
REFind(reg_expression, string [, start, returnsubexpressions, scope ] )Parameter | Description |
reg_expression | Regular expression for which to search. Case sensitive. |
string | A string, or a variable that contains one, in which to search. |
start | Optional. A positive integer, or a variable that contains one. Position in the string at which to start search. The default value is 1. |
returnsubexpressions | Optional. Boolean. Whether to return substrings of reg_expression, in arrays named len and pos:
|
scope | Optional
|
<cfscript>
// when start=1, returnSubexpressions=true, and scope="one"
writeDump(REFind("[A-Z]+", "ColdFusion 123!",1,true,"one"));
</cfscript><cfscript>
// when start=1, returnSubexpressions=true, and scope="all"
writeDump(REFind("[A-Z]+", "ColdFusion 123!",1,true,"all"));
</cfscript><cfscript>
// when start=1, returnSubexpressions=true, and scope="one"
writeDump(REFind("[a-z]+", "ColdFusion 123!",1,true,"one"));
</cfscript><cfscript>
// when start=1, returnSubexpressions=true, and scope="all"
writeDump(REFind("[a-z]+", "ColdFusion 123!",1,true,"all"));
</cfscript>