Regular expression
It is possible to specify a regular expression, as if it is fulfilled by name code, results in a series of groups, that can be composed to a new name code by a composing text you specify. In the configuration file SJADConfiguration<database>.xml, you add the following XML-elements.
<inRegularExp kind="unit">the regular expression </inRegularExp><outExp kind=”unit”>the composing text</outExp>unit can be replaced with either user, group or committee.
The XML elements must be entered as sub elements of the <domain> element in order to make it possible to have different name code regular expression for alternate domains.
outExp can be any text, where #<group number> is replaced by the text from group <group number>.
| AD code | WZCS Code | Group 1 | Group 2 |
|---|---|---|---|
| SOC-ADEL-ABC-SOC-MYN-M | SOC-MYN | SOC | MYN |
| SAC-ADEL-ABC-SOC-AFDB-M | SAC-AFDB | SAC | AFDB |
| SAC-ADEL-ABC-SOC-AFDB_TA-M | SAC-AFDB_TA | SAC | AFDB_TA |
| SAC-ADEL-ABC-SOC-AFDB-TA-SAM_AK-M | SAC-SAM_AK | SAC | SAM_AK |
| SAC-ADEL-ABC-SOC-AFDB-TA-DAK_AK-M | SAC-DAK_AK | SAC | DAK_AK |
For more information about regular expressions, see Regular Expression Language - Quick Reference on MSDN.

