Regular expressions for the DBMT tool

Regular expressions allow the administrator to use a template for selecting which databases the DBMT tool will work on.

The special characters used for creating the template are as follows.

Table 1. Special characters
Character Description
C Matches any single non-special character C
'C Matches the single character C even if special
? Matches any single character
{ABN} Matches any character in the set {A,B,N}
{!ABN} Matches any character not in the set {A,B,N}
{A-FH-K} Matches any character in the set {A...F,H...K}
+C Matches any number of occurrences of the pattern C
* Matches any string (shorthand for +?)
! Complements logical meaning of this template
| Performs logical or of two templates
& Performs logical and of two templates
(template1 BOOLEAN template2 ...) Used to enforce order of precedence when evaluating the templates

Examples

*/test*.nsf - Searches all directories under the data directory for any database beginning with test and ending with .nsf.

te*\j{aeiou}*.nsf - Searches all directories starting with te that reside in the data directory for databases that begin with j followed by a vowel.

*/stev*(e|n).nsf - Searches all directories under the data directory for a database name that starts with st and ends with either an e or an n (steve or steven).