See also
REFind, REFindNoCase, Replace, ReplaceList
History
ColdFusion MX: Changed behavior: this function inserts the following special characters in regular expression replacement strings, to control case conversion: \u, \U, \l, \L, and \E. If any of these strings is present in a ColdFusion 5 application, insert a backslash before it (for example, change "\u" to "
u").
Parameters
Parameter
|
Description
|
---|
string
|
A string or a variable that contains one.
|
reg_expression
|
Regular expression to replace. For more information, see Using Regular Expressions in Functions in the Developing ColdFusion Applications.
|
substring
|
A string or a variable that contains one. Replaces reg_expression.
|
scope
|
- one: replaces the first occurrence of the regular expression. Default.
- all: replaces all occurrences of the regular expression.
|
Usage
For details on using regular expressions, see Using Regular Expressions in Functions in the Developing ColdFusion Applications.
Example