Using Wildcards

When preparing files for use with Monarch, if you are using the string replacement option you can utilize wildcards in search and replace strings. (For those users of the old MSRP utility, there is no longer a limit to the number of characters in the search and replace strings. MSRP had a limit of 32 characters total.)

Note: The number of wildcards in the search string must be greater or equal to the number of wildcards in the replace string.

The wildcards accepted are:

  • /a – for characters A-Z and a-z.

  • /c – for any character with an ANSI value of decimal 1-254 with exception of 32 (space).

  • /n – for characters 0-9.

  • /? – for any character with an ANSI value decimal 0-255.

If the search or replace string needs to include a / (forward slash), it needs to be specified in decimal form, /47 or hexadecimal form, /x2F. The same is true of a " (quote) /34 or /x22. These two characters are used for specifying wildcards and the boundaries of the search and replace strings.

ANSI characters may be specified in the "Replace:" and "With:" edit boxes on the File Preparation Settings screen. OEM characters above 127 must be specified in the numeric form, either in decimal or hex in the edit boxes. For example, Ä as an OEM character would be /142 or /x8E. When running Monarch Utility at the command line, all characters above 127 must be specified in numeric form whether the character set is OEM or ANSI.

 

 

© 2024 Altair Engineering Inc. All Rights Reserved.

Intellectual Property Rights Notice | Technical Support