home *** CD-ROM | disk | FTP | other *** search
- <!--- This example shows the use of REFind --->
-
- <HTML>
-
- <HEAD>
- <TITLE>
- REFind Example
- </TITLE>
- </HEAD>
-
- <BODY>
-
- <H3>REFind Example</H3>
-
- <P>REFind returns the position of the first occurrence of
- a regular expression in a string starting from the specified
- position. Returns 0 if no occurrences are found.
-
- <P>
-
- <P>REFind("a+c+", "abcaaccdd"): <CFOUTPUT>#REFind("a+c+", "abcaaccdd")#</CFOUTPUT>
- <P>REFind("a+c*", "abcaaccdd"): <CFOUTPUT>#REFind("a+c*", "abcaaccdd")#</CFOUTPUT>
- <P>REFind("[\?&]rep=", "report.cfm?rep=1234&u=5"): <CFOUTPUT>#REFind("[\?&]rep=", "report.cfm?rep=1234&u=5")#</CFOUTPUT>
-
- </BODY>
-
- </HTML>
-