About DOS wildcard style expressions

book

Article ID: 181326

calendar_today

Updated On:

Products

Mail Security for Microsoft Exchange

Issue/Introduction

 

Resolution

DOS wildcard style expressions ("*", ".", and "?") provide a convenient way to specify file names, similar to the way in which DOS wildcard characters are used. For example, match lists of type DOS wildcard are typically used with the Attachment Name Attribute to specify file names such as *.exe. In addition, a DOS wildcard expression lets you easily specify files without extensions.

Table: DOS wildcard expressions describes the DOS wildcard style expressions.

Table: DOS wildcard expressions

DOS wildcard expression

Equivalent regular expression

Description

*

.*

Zero or more of any character

?

[^\.]

Any one character except the period (.)

.

\.

Literal period character

*.

[^\.]+\.?

Does not contain a period, but can end with one

See About regular expressions