Specifies the path for the file or directory to scan for pattern matches. The path must be accessible to the File Management operators on the touchpoint where they are running. For a file, the operator searches the contents of the file for the specified pattern.
If you specify a file or directory without specifying the full path, the File Management operators use <install_dir>\server\c2o as the relative path for the specified file or directory. In most cases, you can use the slash mark (/) character in a path.
Specifies the pattern searched for by the operator (see Using Masks to Specify Patterns in Strings in the Content Designer Guide).
The pattern uses the number symbol (#) used as the separator to return values for the variables Level and Code:
"BACKUP LEVEL #.*# - CODE #.*#"
From the string “BACKUP LEVEL A400 - CODE FSC137.0359”, this pattern would assign the substrings “A400” to the variable Level and “FSC731.0359” to the variable Code. The assignment is made in the same order as the variables are defined under Variable names.
To match any number of multiple lines, you can use the \n escape in the Pattern field. The following example matches lines starting with “Log”, followed by any number of intervening new lines and a string of text ending in “Error=89”:
"Log.*\n.*Error=89"
If you are accustomed to using escape characters in programming languages, this \n escape matches any number of new lines on either Windows or UNIX. This escape does not match a single line feed character.
Specifies a character that is used to delimit the zone to save to the variables that the variable names specify, such as the # symbol.
Select this check box to start searching from the end of a specified file. This option is used to find the last occurrence of pattern in a file. This option lets you match the newest messages in a file.
Select this check box to take into account upper-case and lower-case characters when searching for a pattern. If you do not select this check box, the letters in a pattern match both upper and lower case characters.
Specifies a starting position for a search. The value represents the number of characters from the start of the file unless you select the Start from end of file check box. In that case, the value represents the number of characters from the end of the file.
To perform a looped pattern match, you can use the MatchPos and MatchEntry variables from the operator dataset of an earlier Search File Content operator to start where the previous match left off:
Process.Operator_name.MatchPos + Len(Process.Operator_name.MatchEntry)
Specifies the variable names in which to save text that matches the delimited zones in the pattern. Delimited zones are saved to the listed variables in the order defined in the variable list. Operator dataset variables are accessed through the process dataset, using the keyword process.
For example, specifying the variable names Level and Code to assign extracted substring values to the operator dataset variables Process.Operator_name.Level and Process.Operator_name.Code.
You can add, remove, and order the variables that are used to store matched strings using the toolbar.
|
Copyright © 2014 CA.
All rights reserved.
|
|