dlpcustom

Customized Expressions

Create customized expressions if none of the predefined expressions meet your requirements.

Expressions are a powerful string-matching tool. Ensure that you are comfortable with expression syntax before creating expressions. Poorly written expressions can dramatically impact performance.

When creating expressions:

http://www.pcre.org/

There are several criteria that you can choose from when creating expressions. An expression must satisfy your chosen criteria before OfficeScan subjects it to a Digital Asset Control policy. Choose one of the following criteria for each expression:

Criteria for Expressions

Criteria

Rule

Example

None

None

American people’s names

  • Expression: [^\w]([A-Z][a-z]{1,12}(\s?,\s?|[\s]|\s([A-Z])\.\s)[A-Z][a-z]{1,12})[^\w]

Specific characters

An expression must include the characters you have specified.

In addition, the number of characters in the expression must be within the minimum and maximum limits.

ABA routing number

  • Expression: [^\d]([0123678]\d{8})[^\d]

  • Characters: 0123456789

  • Minimum characters: 9

  • Maximum characters: 9

Suffix

Suffix refers to the last segment of an expression. A suffix must include the characters you have specified and contain a certain number of characters.

In addition, the number of characters in the expression must be within the minimum and maximum limits.

Home address, with zip code as the suffix

  • Expression: \D(\d+\s[a-z.]+\s([a-z]+\s){0,2}
    (lane|ln|street|st|avenue|ave|
    road|rd|place|pl|drive|dr|circle|
    cr|court|ct|boulevard|blvd)\.?
    [0-9a-z,#\s\.]{0,30}[\s|,][a-z]{2}\
    s\d{5}(-\d{4})?)[^\d-]

  • Suffix characters: 0123456789-

  • Number of characters: 5

  • Minimum characters in the expression: 25

  • Maximum characters in the expression: 80

Single-
character separator

An expression must have two segments separated by a character. The character must be 1 byte in length.

In addition, the number of characters left of the separator must be within the minimum and maximum limits. The number of characters right of the separator must not exceed the maximum limit.

Email address

  • Expression: [^\w.]([\w\.]{1,20}@[a-z0-9]{2,20}[\.][a-z]{2,5}[a-z\.]{0,10})[^\w.]

  • Separator: @

  • Minimum characters to the left: 3

  • Maximum characters to the left: 15

  • Maximum characters to the right: 30

  1. Click the Expressions tab.

  2. Click Add. A new screen displays.

  3. Type a name for the expression. The name must not exceed 100 bytes in length and cannot contain the following characters:

  4. > < * ^ | & ? \ /

  5. Type a description that does not exceed 256 bytes in length.

  6. Type the expression and specify whether it is case-sensitive.

  7. Type the displayed data. For example, if you are creating an expression for ID numbers, type a sample ID number. This data is used for reference purposes only and will not appear elsewhere in the product.

  8. Choose one of the following criteria and configure additional settings for the chosen criteria:

  9. See Customized Expressions for details about the criteria and additional settings.

  10. Test the expression against an actual data. For example, if the expression is for a national ID, type a valid ID number in the Test data text box, click Test, and then check the result.

  11. Click Save if you are satisfied with the result.

  12. A message appears, reminding you to deploy the settings to clients. Click Close.

  13. Back in the Digital Asset Definitions screen, click Apply to All Clients.

  1. Click the Expressions tab.

  2. Select a customized expression and then click Copy. A new screen appears.

  3. Type a unique name for the expression. The name must not exceed 100 bytes in length and cannot contain the following characters:

  4. > < * ^ | & ? \ /

  5. Accept or modify the other settings.

  6. Click Save.

  7. A message appears, reminding you to deploy the settings to clients. Click Close.

  8. Back in the Digital Asset Definitions screen, click Apply to All Clients.

  1. Click the Expressions tab.

  2. Click Import and then locate the .dat file containing the expressions.

  3. Click Open. A message appears, informing you if the import was successful. If an expression to be imported already exists in the list, it will be skipped.

  4. Click Apply to All Clients.

  1. Click the Expressions tab.

  2. Click the name of the expression that you want to modify. A new screen appears.

  3. Modify the settings.

  4. Click Save.

  5. A message appears, reminding you to deploy the settings to clients. Click Close.

  6. Back in the Digital Asset Definitions screen, click Apply to All Clients.

  1. Click the Expressions tab.

  2. Click Export.

  3. Save the resulting .dat file to your preferred location.

  1. Click the Expressions tab.

  2. Select the expressions that you want to delete and click Delete.

  3. Click Apply to All Clients.

See also: