The regex pattern must be enclosed in brackets (for example, \.edi] or ).Regular expressions (abbreviated regex) are composed of a special syntax that enables a wider range of search patterns. All regular expression usage must follow these basic rules. When the basic wildcards do not provide the needed search criteria, regular expressions may be used instead. For example, " PUT ab*.*" and " PUT ab?.*" are both acceptable. Note that, when using wildcards, it is possible to use multiple wildcards within the same token. The following commands produce the following results. For example, assume the outbox has the following files. Wildcards are represented by * or ?, where * matches multiple characters and ? matches only a single character. Searches first for directories that end in box (for example, inbox or outbox), and next for the subdirectories that match the regular expression a.* , and finally for files that match the regular expression ab.*\.edi Searches first for directories that end in box (for example, inbox or outbox) and next for files that match the regular expression ab.*\.edi Searches myOutbox for all files that match the regular expression ab.*\.edi Searches myOutbox for all files that match the pattern ab?edi Searches myOutbox for all files that match the pattern ab*.edi As an introduction, the table below provides some examples. Refer to your specific command reference for locations where you can use wildcards and regular expressions. Some cases, however, allow for placement within the directory tokens, as well. Generally, wildcards and regular expressions are restricted to use only within the filename token of a path. The CHECK is only available with the Cleo Harmony and Cleo VLTrader applications. Wildcards and regular expression are most often used in the paths of GET, PUT, LCOPY, LDELETE, LREPLACE, and CHECK commands. (In this case, the dot does not mean “any character” because it is escaped).This section describes the usage of wildcards and regular expressions. will match all units that have a period after phone. The character following it is parsed as a simple character. Received$ will match all units that end with received.Įscape character. ^Phone will match all units that start with Phone.Įnd of line (needs to be at the end of the expression) Start of line (needs to be at the beginning of the expression) Note: To match a whole word, you can specify to match Phone, but not Phones or iPhone, or you can specify to match both Phone and Phones, but not iPhone or iPhones. Hones> matches Phones but does not match Phone. John matches John and Johhn, but does not match Jon or Johhhn. Joh n matches John, and Johhn, but does not match Jon or Johan.Įxactly m repetitions of the preceding character Joh?n matches Jon and John, but does not match Johan.ġ or more repetitions of the preceding character For example, Joh.*n matches John, Johhn, and Johan (but does not match Jon).Ġ or 1 instances of the preceding character To mean any number of characters you need to use the dot-asterisk sequence (.*). Note: In Regular Expressions, the asterisk does not have the same behavior as in Microsoft Word wildcards. Joh*n matches Jon, John, and Johhn, but does not match Johan. Jo.n matches John and Joan, but does not match Johan.Ġ or more instances of the preceding character Regular Expressions Syntax Character or Expression Target Term fields to indicate that you are in the selected mode.
0 Comments
Leave a Reply. |