Sun Java System Web Server 7.0 Update 3 Administrator's Configuration File Reference

Wildcard Examples

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

Table B–2 Wildcard Examples

Pattern 

Result 

*.sun.com

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

(quark|energy).sun.com

Matches either quark.sun.com or energy.sun.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. 

*~sun-*

Matches any string except those starting with sun-.

*.sun.com~quark.sun.com

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

*.sun.com~(quark|energy|neutrino).sun.com

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

*.com~*.sun.com

Matches any host from domain .com except for hosts from sub-domain sun.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.

*~*.gif*

Matches any string except those including gif.