Start » Filter Reference » Basic » String » RegexReplaceInString

RegexReplaceInString


Module: FoundationLite

Replaces all matching occurrences of the pattern with a replacement string. Uses ECMAScript regular expression grammar (https://en.cppreference.com/w/cpp/regex/ecmascript).

Name Type Description
Input value
inString String Input string
Input value
inRegex String Input regex
Input value
inIgnoreCase Bool Ignore case
Input value
inReplacement String Replacement string
Output value
outString String Output string

Errors

This filter can throw an exception to report error. Read how to deal with errors in Error Handling.

List of possible exceptions:

Error type Description
DomainError Empty Regex on input in RegexReplaceInString.

Complexity Level

This filter is available on Advanced Complexity Level.