Scanning is performed for specific text (including the at sign (@), pound sign (#) and exclamation mark (!)) following a question mark, an asterisk or a dash. The question mark represents the maximum number of characters that can be mismatched before the scan is terminated.
The scan is terminated when the pattern is located, the end of the node is encountered, or the maximum number of mismatches has occurred. The asterisk is used to scan for the text that follows it. The scan ends when the text is located or the end of the node is encountered. The dash is similar to the asterisk, with the exception that the scan after a dash continues until the test is found or the end of the object is encountered.
The following example illustrates a scan using the question mark:
Object: AAABC.XYZ Pattern: ????BC.XYZ Object segment: AAABC. Pattern segment: ????BC.
This pattern indicates that as many as four characters can be mismatched at the beginning of the pattern before a mismatch is declared on the entire pattern.
|
Copyright © 2014 CA.
All rights reserved.
|
|