Whatever message this page gives is out now! Go check it out!
<!--- The value of IndexOfOccurrence is 5 ---><!--- The value of IndexOfOccurrence is 9 ---><cfoutput>
<cfdump var="#sLenPos#">
</cfoutput><br><cfset sLenPos=REFind(" BIG ", myString, 1, "True")>
<cfoutput>
#mid(myString, sLenPos.pos[1], sLenPos.len[1])#
</cfoutput><!--- subtract 1 because you need to start at the first space --->
<cfset sLenPos2=REFind(" BIG ", "Some BIG BIG string", newstart, "True")>
<cfoutput>
<cfdump var="#sLenPos2#">
</cfoutput><br>"There is is a cat in in the kitchen", 1, "True")>
<cfoutput>
<cfdump var="#sLenPos#">
</cfoutput><br><cfset regex = "(apples) and (pears)">
<cfset sLenPos = REFind(regex, sString, 1, "True")>
<cfoutput>
<cfdump var="#sLenPos#">
</cfoutput><cfset sLenPos=REFind("<b>(.*)</b>", "<b>one</b> <b>two</b>", 1, "True")>
<cfoutput>
<cfdump var="#sLenPos#">
</cfoutput><br>| Expression | Description |
*? | minimal-matching version of * |
+? | minimal-matching version of + |
?? | minimal-matching version of ? |
{min,}? | minimal-matching version of {min,} |
{min,max}? | minimal-matching version of {min,max} |
{n}? | (no different from {n}, supported for notational consistency) |
<cfset sLenPos=REFind("<b>(.*?)</b>", "<b>one</b> <b>two</b>", 1, "True")>
<cfoutput>
<cfdump var="#sLenPos#">
</cfoutput><br>