Sun Java System Web Server 6.1 SP6 NSAPI Programmer's Guide

Wildcard Examples

The following table provides wildcard examples, listing the pattern and the result.

Table 9–2 Wildcard Examples

Pattern  

Result  

*.netscape.com

Matches any string ending with the characters .netscape.com.

(quark|energy).netscape.com

Matches either quark.netscape.com or energy.netscape.com.

198.93.9[23].???

Matches a numeric string starting with either 198.93.92 or 198.93.93 and ending with any 3 characters.

*.*

Matches any string with a period in it. 

*~netscape-*

Matches any string except those starting with netscape-.

*.netscape.com~quark.netscape.com

Matches any host from domain netscape.com except for a single host quark.netscape.com.

*.netscape.com~(quark|energy|

neutrino).netscape.com

Matches any host from domain .netscape.com except for hosts quark.netscape.com, energy.netscape.com, and neutrino.netscape.com.

*.com~*.netscape.com

Matches any host from domain .com except for hosts from subdomain netscape.com.

type=*~magnus-internal/*

Matches any type that does not start with magnus-internal/.

This wildcard pattern is used in the file obj.conf in the catch-all Service directive.