Bookshelf Home | Contents | Index | PDF |
Siebel eScript Language Reference > Methods Reference > String Methods > Replace String MethodThe Replace String method uses the regular expression that you define in the pattern argument to search a string. If it finds a match, then it replaces the string it finds with the string that you define in the replexp argument. If you use T eScript code, and if this method replaces a string, then it sets the appropriate static properties for the regular expression object. These properties provide more information about the replacements. For more information, see Using the Get Regular Expression from String Method with the T eScript Engine. FormatstringVar.replace(pattern, replexp) Table 40 describes the arguments for the Replace String method.
Special Characters You Can Use in a Replacement ExpressionTable 41 describes the special characters that you can use in a replacement expression. ExampleThe following example includes the Replace String method: var rtn; // rtn == "one zzz three zzz one" // rtn == "one twozzz three twozzz one"; // rtn == "one 5 three 5 one" // rtn == "one twotwo three twotwo one"; |
Siebel eScript Language Reference | Copyright © 2018, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |