REPLACE function
Returns a string with specified substring replacements.
Syntax
source-string
from-string
to-string
ExampleThe following example uses the REPLACE function to replace the string “user” with an actual user ID, if available:
Notes
- The REPLACE function replaces all occurrences of
from-string
withinsource-string
. After replacing a substring, the REPLACE function resumes searching the string after the inserted text. Thus, the inserted text is not recursively searched (in whole or in part) forfrom-string
.- The search for occurrences of
from-string
withinsource-string
is not case sensitive, unless one of the three values used in the function (source-string
,to-string
, orfrom-string
) is a case-sensitive field or variable.See also
OpenEdge Release 10.2B
|