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

Appendix B Using Wildcard Patterns

This appendix describes the wildcard patterns used by the Sun Java System Web Server. Wildcards use special characters and are applicable in the obj.conf file, built-in SAFs, and NSAPI functions. To use a wildcard character without any special meaning, precede it with a backslash (\) character.

This appendix has the following sections

Wildcard Patterns

The following table describes wildcard patterns, listing the patterns and their uses.

Table B–1 Wildcard Patterns




Match zero or more characters. 


Match exactly one occurrence of any character. 


An or expression. The substrings used with this operator can contain other special characters such as * or $. The substrings must be enclosed in parentheses, for example, (a|b|c), but the parentheses cannot be nested.


Match the end of the string. This is useful in or expressions.


Match one occurrence of the characters a, b, or c. Within these expressions, the only character that needs to be treated as a special character is ]; all others are not special.


Match one occurrence of a character between a and z.


Match any character except a or z.


This expression, followed by another expression, removes any pattern matching the second expression. 

Wildcard Examples

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

Table B–2 Wildcard Examples




Matches any string ending with the characters


Matches either or


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. 


Matches any string except those starting with sun-.


Matches any host from domain except for a single host


Matches any host from domain except for hosts,, and


Matches any host from domain .com except for hosts from sub-domain


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.


Matches any string except those including gif.