RegEx Replace
RegEx Replace is one of the most useful Actions that you can add to your flows. It will allow you to automate the way you update documents inside your flows.
Let's assume that you have a template file that you wish to use with several of your customers and the only thing you wish to change is the contact email address.
1. Create a new process and give it a name.
2. Drag the Regex Replace action to the canvas and link it to the other actions.
3. Click the Regex Replace action to access its configurations and click the button Regex Configurations.
- <%stringToSearchIn%> - variable that has the default text saved as Default value.
- <%reGexExpression%> - variable that has the Regex Value saved as Default value. The Regex is "([_\.0-9a-zA-Z-]+@([\-0-9a-zA-Z]+\.)+[a-zA-Z]{2,6})".
- <%updatedText%> - variable that will hold the modified text.
- <%email%> - input variable that will ask the email that the regex expression will use.
If you wish to search the text regardless the case check the Ignore case checkbox.
5. Save and Validate the process.
6. Each time you will run the process you are expected to add the new email address you wish to us.
7. Because we have created <%updatedText%> of type output, when you click Check instances you will be able to see that the text was updated.