home *** CD-ROM | disk | FTP | other *** search
/ Australian Personal Computer 1999 April / APC443.iso / features / grpware / coldfus / coldfusi.exe / data1.cab / Documentation / snippets / refind.cfm < prev    next >
Encoding:
Text File  |  1998-10-08  |  652 b   |  28 lines

  1. <!--- This example shows the use of REFind --->
  2.  
  3. <HTML>
  4.  
  5. <HEAD>
  6. <TITLE>
  7. REFind Example
  8. </TITLE>
  9. </HEAD>
  10.  
  11. <BODY>
  12.  
  13. <H3>REFind Example</H3>
  14.  
  15. <P>REFind returns the position of the first occurrence of
  16. a regular expression in a string starting from the specified
  17. position.  Returns 0 if no occurrences are found.
  18.  
  19. <P>
  20.  
  21. <P>REFind("a+c+", "abcaaccdd"):    <CFOUTPUT>#REFind("a+c+", "abcaaccdd")#</CFOUTPUT>
  22. <P>REFind("a+c*", "abcaaccdd"):    <CFOUTPUT>#REFind("a+c*", "abcaaccdd")#</CFOUTPUT>
  23. <P>REFind("[\?&]rep=", "report.cfm?rep=1234&u=5"):    <CFOUTPUT>#REFind("[\?&]rep=", "report.cfm?rep=1234&u=5")#</CFOUTPUT>
  24.  
  25. </BODY>
  26.  
  27. </HTML>       
  28.