Previous Topic: Pattern Matching RoutineNext Topic: Pattern Matching


Pattern Validation

Pattern validation verifies the contents of a pattern. This function primarily checks for invalid combinations. The following combinations are invalid because they are ambiguous:

?*   ?-   *?   **   *-   -?   -*   --

A back slash (\) cannot be used as a wildcard character at the end of a pattern. It is valid at the end only if preceded by a back slash (\), which indicates that it is to be taken literally as a back slash.