Feedback

  • Contents
 

Add a Regular Expression Replacement

Use the Regex Config dialog box to add a regular expression (REGEX) to replace information within a file.

To add a regular expression replacement

  1. In the Navigation pane, click Clients.

Clients pane

  1. In the Clients pane, expand the appropriate folder and then double-click the client. The tab for the specified client appears in the Information pane.

General tab

  1. On the General tab in the General Configuration section, click Configure File Pre-processing. The Regex Config dialog box appears.

Regex Config dialog box

  1. Click Add regex replacement. The File Processing dialog box appears.

File Processing dialog box

Regex: Pattern to use to match to a specific sequence of characters in a file.

Replacement: For characters that match the regular expression, replace them with these characters.

Effected Interfaces: If selected, Exchange Manager runs the Regular Expression against the file type. None" is selected by default. Clear this check box to select a specific import type.

Place test expression below: Sample text to use to test the regular expression.

Preview: Runs the regular expression test.

Result after Regex Replacement: Result of the regular expression.  

In the following example, Exchange Manager looks for the letter "L" in "SCOLL" and replaces it with the letter "T" to get "SCOTT".

File Pre-processing dialog box - example

  1. Complete the information and then click OK. Exchange populates the Regex Config dialog box with all regular expression replacements.

  2. In the Regex Config dialog box, click OK.

  3. In the toolbar, click Save. The Update Comment dialog box appears.

  4. In the Update Comment box, type a comment regarding your changes and then click OK.

Related Topics

Configure Code Pre-processing

Sample Pre-processing Code

General Configuration