Appendix C - Using a Regular Expression with FCI

Applies To: Windows Server 2008, Windows Server 2008 R2

The following is an example of creating a FCI Classification Rule using a Regular Expression. A regular expression is a pattern of text that consists of ordinary characters (for example, letters a through z) and special characters, known as metacharacters. The pattern describes one or more strings to match when searching text. The example below shows how to use a regular expression to look for social security type number. It searches for 3 digits followed by a hyphen, then 2 digits followed by a hyphen and finally 4 digits (ddd-dd-dddd). If any such expression is found in a document it will be classified as having a high business impact

To create the Regular Expresssion Classification Rule

  1. Log on to as Administrator

  2. Click Start, click Administrative Tools, and click File Server Resource Manager.

  3. In the File Server Resource Manager, on the left, expand Classification Management, and right-click Classification Rules, and select Create a New Rule. This will bring up the Classification Rule Definitions window.

  4. Under Rule name:, enter Social Security Rule.

  5. Under Description, enter Determines if the document contains a social security type number.

  6. Under Scope, click Add and browse to FabrikamDocuments. Click OK

  7. At the top, click the Classification tab.

  8. Under Choose a method to assign the property value, select Content Classifier from the drop-down.

  9. Under Choose a property value to be assigned, select Business Impact Classification Property from the drop-down.

  10. Under Property value to be assigned, select High from the drop-down.

  11. Click Advanced. This will bring up the Additional Rule Parameters.

  12. On the Evaluation Type, place a check in the Re-evaluate existing property values box and select Aggregate the values.

  13. At the top, click the Additional Classification Parameters tab.

  14. Under the box that says Name, enter RegularExpression. Under the box that says Value, enter \d{3}-\d{2}-\d{4}.

  15. Click OK. Click OK.

To test this, create a world document with the following number 111-22-3333 in it. Save it to c:\FabrikamDocuments share and then run the classification rule steps and file management tasks.

For more information about using Regular Expressions with FCI see, Classifying files based on location and content using the File Classification Infrastructure (FCI) in Windows Server 2008 R2 (

For more information about Regular Expressions syntax see, Regular Expression Syntax (