Microsoft KB Archive/832023

= You cannot use regular expressions when you add or when you exclude directories in a catalog =

Article ID: 832023

Article Last Modified on 5/4/2005

-

APPLIES TO

 Microsoft Index Server, version 3.1, when used with:  Microsoft Windows Server 2003, Web Edition

 Microsoft Windows Server 2003, Standard Edition (32-bit x86)

 Microsoft Windows Server 2003, Enterprise Edition (32-bit x86) 

-

<div class="symptoms_section">

SYMPTOMS
When you add a directory to your index server catalog by specifying a regular expression (such as a wildcard character [*]) in the directory path in the Indexing Service console, you receive the following error message:

Invalid directory name

<div class="cause_section">

CAUSE
The Indexing Service on Microsoft Windows Server 2003 does not validate regular expressions that are added through the Microsoft Management Console (MMC).

<div class="status_section">

STATUS
This behavior is by design.

<div class="workaround_section">

WORKAROUND
To work around this problem, use wildcard expression by means of the registry to include directories in a catalog or to exclude directories from a catalog.

Important This article contains information about how to modify the registry. Make sure to back up the registry before you modify it. Make sure that you know how to restore the registry if a problem occurs. For more information about how to back up, restore, and modify the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows registry

<ol> Stop Indexing Service.</li> Start Registry Editor.</li> Locate the following key in the registry:

</li> Right-click Scopes, and then click New String Value.</li> Add the location path with the wildcard character (for example, C:\myfolder\*).</li> Quit Registry editor.</li> Locate your catalog in the MMC, find the Directories folder, and then double-click the folder that contains the location path that you created in step 5.</li> In the Add Directory dialog box, click No under the Include in Index? option.</li> Repeat steps 4 through 8 for all other location paths that contain wildcard characters.</li> Restart Indexing Service.</li></ol>

<div class="status_section">

STATUS
This behavior is by design.

Additional query words: &quot;wild card&quot; &quot;wildcard expression&quot;

Keywords: kbprb KB832023

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.