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

  1. <!--- This example shows the use of REReplaceNoCase --->
  2. <HTML>
  3. <HEAD>
  4. <TITLE>
  5. REReplaceNoCase Example
  6. </TITLE>
  7. </HEAD>
  8.  
  9. <BODY bgcolor=silver>
  10. <H3>REReplaceNoCase Example</H3>
  11.  
  12. <P>The REReplaceNoCase function returns <i>string</i> with a regular expression
  13. being replaced with <i>substring</i> in the specified scope.  
  14. This is a case-insensitive search.
  15.  
  16. <P>REReplaceNoCase("cabaret","C|B","G","ALL"):    
  17. <CFOUTPUT>#REReplaceNoCase("cabaret","C|B","G","ALL")#</CFOUTPUT>
  18. <P>REReplaceNoCase("cabaret","[A-Z]","G","ALL"):    
  19. <CFOUTPUT>#REReplaceNoCase("cabaret","[A-Z]","G","ALL")#</CFOUTPUT>
  20. <P>REReplaceNoCase("I LOVE JELLIES","jell(y|ies)","cookies"):    
  21. <CFOUTPUT>#REReplaceNoCase("I LOVE JELLIES","jell(y|ies)","cookies")#</CFOUTPUT>
  22. <P>REReplaceNoCase("I LOVE JELLY","jell(y|ies)","cookies"):    
  23. <CFOUTPUT>#REReplaceNoCase("I LOVE JELLY","jell(y|ies)","cookies")#</CFOUTPUT>
  24.  
  25. </BODY>
  26. </HTML>       
  27.