Previous Table of Contents Next


3.1.11 Filter Definitions


   Some methods have a filter string (for example, the browse methods find_by_type() and find_by_parent() in DAISNode and DAISItem). The filter string shall contain a pattern that is used to match a text string (e.g., the pathname). The text strings matching the pattern are passing the filter.

   The strings that may appear in the filter string pattern are listed below.

Characters in pattern

Matches in string

? Any single character.
* Zero or more characters.
# Any single digit (0-9).
substring The specified substring
[charlist] Any single character in charlist.
[!charlist] Any single character not in charlist.

   Some examples of patterns and strings are given below.

Pattern

String

String pass filter

a*a aBBBa Yes
[A-Z] F Yes
[!A-Z] F No
a#a a2a Yes
a[L-P]#[!c-e] aM5b Yes
B?T* BAT123khg Yes
B?T* CAT123khg No