Regular Expression Replace

Replaces all strings that match a regular expression pattern with a specified replacement.

Note

If you have an active Plumsail Documents subscription, this action is free, i.e., it doesn’t consume documents limit of the subscription. Please also check the licensing details.

We would recommend you to use Regex 101 tool to test your expressions. It supports the same syntax as actions. By default, Regex101 works with the PCRE2 syntax. You should change it to .NET (C#) in the “Flavor” section under “Save & Share”.

Parameters

Output Parameters

Parameter

Description

Example

Bundle

Result string with replaced substrings that match a regular expression pattern.

John Smith

Input Parameters

Parameter

Description

Example

Connection

To allow your scenarios to get information from and send it to Plumsail Documents, you need to create a connection.

For more information on how to create a connection to Plumsail Documents, see the online Help.

Regular expression pattern.

This pattern can contain inline options to modify behavior of the regular expression. Such options have to be placed in the beginning of the expression inside brackets with question mark: (?YOUR_OPTIONS). For example options (?mi) will allow to process multi line text with case insensitivity. You can find additional information about inline options in the MSDN article.

Name: (?<Name>.+)

String to search for matches

You can either enter static text or select dynamic values from other apps in the scenario.

Name: John Smith

Replacement String

Replacement string or backreference. The name or number of a captured group should be put between braces in ${}.

${Name}