Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Example for regular expression to restrict changes by Item Name

We are using CLM 4.x and I'm searching for an example how to prevent file / folder names that have problems on Unix / Windows systems (blanks / "/" / ...).

I tried a lot of expressions but nothing works fine. Are there any example ?

1

0 votes


Accepted answer

Permanent link
I suggest specifying a list of legal characters: ^[_0-9a-zA-Z\.]+$ in the 'Restrict Changes by Item Name' advisor. e.g:


With that predcondition enabled, I am able to deliver the creation of the file "TestFile.txt" but unable to deliver the creation of "!TestFile.txt".
Katrin Heymann selected this answer as the correct answer

0 votes

Comments

I tried but with the setting "allowed" I am not able to upload a file with the name "TestFile.txt" and with the setting "prevented" every name (including special signs) is allowed.
Do you have an example that works ?

I've updated the answer to include a screenshot and mention that it properly allows the delivery of a file matching the regex and prevents the delivery of a file that doesn't match the regex. 

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Nov 26 '14, 7:50 a.m.

Question was seen: 3,329 times

Last updated: Nov 26 '14, 11:17 a.m.

Confirmation Cancel Confirm