![]() ![]() ![]() |
This table shows the wildcard characters for searching Verity collections.
Verity Wildcard Characters | |
---|---|
Wildcard |
Description |
? |
Question. Specifies any single alphanumeric character. |
* |
Asterisk. Specifies zero or more alphanumeric characters. Avoid using the asterisk as the first character in a search string. Asterisk is ignored in a set, [ ] or an alternative pattern { }. |
[ ] |
Square brackets. Specifies one of any character in a set, as in "sl[iau]m" which locates "slim," "slam," and "slum." Square brackets indicate an implied OR. |
{ } |
Curly braces. Specifies one of each pattern separated by a comma, as in "hoist{s, ing, ed}" which locates "hoists," "hoisting," and "hoisted." Curly braces indicate an implied AND. |
^ |
Caret. Specifies one of any character not in the set as in "sl[^ia]m" which locates "slum" but not "slim" or "slam." |
- |
Hyphen. Specifies a range of characters in a set as in "c[a-r]t" which locates every word beginning with "c," ending with "t," and containing any letter from "a" to "r." |
To search for a wildcard character in your collection, you need to escape the character with a backslash (\). For example:
To match a literal asterisk, you precede the * with two backslashes: "a\\*"
To match a question mark or other wildcard character: "Checkers\?"
The following non-alphanumeric characters must be preceded by a backslash character (\) in a search string:
In addition to the backslash character, you can use paired backquotes (` `) to interpret special characters as literals. For example, to search for the wildcard string "a{b" you can surround the string with backquotes, as follows:
`a{b`
To search for a wildcard string that includes the literal backquote character (`) you must use two backquotes together and surround the whole string in backquotes:
`*n``t`
Note that you can use either paired backquotes or backslashes to escape special characters. There is no functional difference in the use of one or the other. For example, you can query for the term: <DDA> in the following ways:
\<DDA\> or `<DDA>`
![]() ![]() ![]() |
AllaireDoc@allaire.com
Copyright © 1998, Allaire Corporation. All rights reserved.