REPLACE - pattern

Syntax

...  {[SUBSTRING] sub_string} | {REGEX regex} ... .

Effect

: Definition of a search string for the statements REPLACE and REPLACE IN TABLE. The search can either be for a substring sub_string or a regular expression regex. The syntax and semantics are the same as in the definition of a search string for the statement FIND.

Note

: A regular expression that is syntactically correct can still be too complex for the execution of the statement REPLACE, which can lead to a treatable exception of the class CX_SY_REGEX_TOO_COMPLEX. However, this normally only occurs for generated regular expressions.