Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Text Replacement

This section enables you to define Regular Expressions (that match character strings in your selected files) that you want to replace with other text:

  • Click the button to add a new line to the table listing the Text Replacements
  • Double click the new line in the table and a hidden section will appear in which you can enter the details you require:

  • Enter the Regular Expression in the Regular Expression field.
  • Chose the type of Regular Expression in the drop down list:
    • Perl (default format) - Specifies that when a regular expression match is to be replaced by a new string, that the new string is constructed using the same rules as Perl 5.
    • Sed - Specifies that when a regular expression match is to be replaced by a new string, that the new string is constructed using the rules used by the Unix Sed utility in IEEE Std 1003.1-2001, Portable Operating System Interface (POSIX), Shells and Utilities.
    • Tcl - Specifies that when a regular expression match is to be replaced by a new string, the text that matches the regular expression will be replaced by the replacement text.
  • Enter the text you want to replace the Regular Expression with, in the Replacing Text field.
  • The new line in the table above should now be populated with your changes:

Add a new Text Replacement

Re-order the list of Text Replacements. This is important because the order in which the items appear in the list, is the order in which the analyzer will replace the character strings that match the Regular Expressions. Thus, if you have a complicated set of Regular Expressions and replacement texts, difficulties could arise if the order in which they are dealt with is not correct.

Delete an existing Text Replacement

Only visible at Application and Analysis Unit level

Use this button to reset the list to the entries defined at one level higher:

  • Analysis Unit level - entries will be reset to all listed at Appplication level
  • Application level - entries will be reset to only those listed at Technology level
  • Use Text Replacement with caution. First try to change the source tree to reflect the production environment and then use Text Replacement for other cases.
  • You can use the Test Text Replacement option to check whether your proposed configuration will function as expected:
    • You will be prompted to choose a source file on which the Text Replacement will be tested.
    • Results of the replacement will be shown in a copy of the selected source file.
  • No labels