Searching With Wildcards; Searching For Wildcards As Literals; Searching For Special Characters As Literals - MACROMEDIA COLDFUSION 4.5-DEVELOPING WEB Develop Manual

Developing web applications with coldfusion
Table of Contents

Advertisement

170

Searching with Wildcards

This table shows the wildcard characters for searching Verity collections.
Verity Wildcard Characters
Wildcard
?
*
[]
{}
^
-

Searching for wildcards as literals

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\?"

Searching for special characters as literals

The following non-alphanumeric characters must be preceded by a backslash
character (\) in a search string:
comma (,)
left and right parentheses ()
double quotation mark (")
backslash (\)
at sign (@)
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."
Developing Web Applications with ColdFusion

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the COLDFUSION 4.5-DEVELOPING WEB and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Coldfusion 4.5

Table of Contents