REReplace

"-->
 REReplace (string, reg_expression, substring [, scope]) 

Description

A case-sensitive search using regular expressions (RE) to search a string for a string pattern and replace it with another. scope can be one or all.

Example

 <cfoutput>  #REReplace("CABARET","C|B","G","ALL")#  #REReplace("CABARET","[A-Z]","G","ALL")#  #REReplace("I love jelly","jell(y|ies)","cookies")#  </cfoutput>  


Inside ColdFusion MX
Inside Coldfusion MX
ISBN: 0735713049
EAN: 2147483647
Year: 2005
Pages: 579

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net