Replace Regex

Pure
ReplaceRegex

Replaces all matches of a regex pattern with the replacement string.

Type: Pure (no side effects)
Category: Fortuna|String & Text
Keywords: string & text

Inputs

NameTypeDefaultDescription
InputFStringInput parameter
PatternFStringPattern parameter
ReplacementFStringReplacement parameter

Outputs

NameTypeDescription
ReturnValueFStringReturnValue output

Example Use Cases

Example 1

Strip HTML tags from text.

Example 2

Sanitize user input by removing special characters.