This view allows you to change the default Regex expression that is used to parse a folder name where PKS configuration Xml files reside to form a common project alias name.
This view can be accessed from the Ribbon Toolbar menu Data/Configure Data Mapping.
Default Regex Match Expression
This is the default expression that will search for the first '_' character and use all characters to its left to form the project alias name:
(^[a-zA-Z0-9]+)[_]
This expression simply tries to match starting at the beginning of a text any Upper/Lower case letter including the digits 0-9 until the '_' character is encountered. The resulting match if this expression was applied to the text phrase "DCU2_20130628" would be "DCU2".
Regex Test Phrase
Enter a typical folder name you will use to identify a version set of PKS Xml configuration files. An example would be DCU2_20131023. This folder name would be part of a folder path such as "C:\Refinery\PKS\Exports\DCU2_20131023". This is test phrase is used to evaluate the Regex expression to verify that a match can be found that will form the alias name.
Test Result
Clicking the Test button will evaluate the Regex expression using the Test Phrase contents as the input to form an alias name. If the evaluation succeeds the result will display "Passed: DCU2" where the text component DCU2 indicates the parsed alias name that was formed.
Save Expression
Click the Save button to save the modified Regex expression and exit the options view.