Pattern configuration setting

Keys

Key

Description

1

Service

2

DocMan

3

Filename

4

Pattern

Description
The Pattern configuration setting maintains the regular expression used by the DocMan service to parse information from the document's file name. The configuration string contains several key patterns.
 

Patterns

Pattern

Description

^

Indicates the start of the filename. Must go at the start of the configuration string.

$

Indicates the end of the filename. Must go at the end of the configuration string.

!

Delimiter character used to separate the ID, description, source code and source reference. You can use a different character if you want, but the delimiter character cannot be:

  • a character that can occur in any of the ID, description, source code or source reference
  • any of the following characters:
  • ^
  • $
  • ***
  • ,
  • .
  • (
  • )
  • [
  • ]
  • {
  • }
  • /
  • **
  • <
  • >
  • ?
  • *
  • |
  • +

Note: We recommend that you use either the exclamation sign (!) or the hash (#).

(?<ID>\d+)

Synergetic ID field.

(?<SourceRef>.)*

Source reference field.

(?<Description>.)*

Description field.

(?<SourceCode>.)*

Source code field.


You can put the four field patterns in any order you want, but the configuration string must:

  • start with the ^ symbol
  • end with the $ symbol
  • contain all four fields exactly as they appear above, including the extra characters
  • separate each field with the same delimiter character.

All documents you want to automatically upload with the DocMan service must follow this pattern. Documents that do not follow the filename pattern are rejected during upload.
 

Default value
The default value is ^(?<ID>\d+)!(?.*)!(?<Description>.)!(?<SourceCode>.)$.
This means the filename comprises of the:

  • Synergetic ID of the community member, followed by an exclamation mark
  • source reference of the document, followed by an exclamation mark
  • description of the document, followed by an exclamation mark
  • source code of the document, ending with the file type extension.

For example, the filename 164!Age!GroupPhotoOfChoir!Newspaper.jpg conforms to this pattern.
 

Setting a different value
Set the Value field on the Configuration File Maintenance window. See Maintaining configuration files.