Developer Documentation Library > UNICOM Intelligence Function Library > Text functions > RegExReplace
 
RegExReplace
Returns a string formed by replacing the substrings that are matched by the regular expression in the string Val with another string.
Syntax
RegexReplace (<value>, <expression>, <replacement> [, <ignore_case>])
Parameters
<value>
Type: Text
The text to be searched.
<expression>
Type: Text
The regular expression.
<replacement>
Type: Text
The text that will be used for replacement.
<ignore_case>
Type: Boolean
(Optional.) The default value is False.
Notes
ICU string types are not supported. For more information, see “Working With Unicode and ICU String Types”:
http://boost.sourceforge.net/libs/regex/doc/icu_strings.html
Example
The following example replaces all digits in a text variable with asterisk characters:
strVal = strVal.RegexReplace("\d", "*")
See also
Text functions