Regexp 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 Documents. 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

Result

A result string with substrings replaced based on a regular expression pattern.

John Smith

Setup Parameters

Parameter

Description

Example

App

Select the app.

Plumsail Documents

Action event

Select an action from the Plumsail Documents bundle.

Regexp Replace

Account

To allow your zaps 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.

Configure Parameters

Parameter

Description

Example

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 zap.

Name: John Smith

Replacement String

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

${Name}