Example for regular expression to restrict changes by Item Name
![](http://jazz.net/_images/myphoto/aabd641510f007c5d3798e8bb6148541.jpg)
Accepted answer
![](http://jazz.net/_images/myphoto/aabd641510f007c5d3798e8bb6148541.jpg)
I suggest specifying a list of legal characters:
^[_0-9a-zA-Z\.]+$
in the 'Restrict Changes by Item Name' advisor. e.g:
![](https://jazz.net/forum/upfiles/Selection_007_1.png)
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".
Comments
![](http://jazz.net/_images/myphoto/aabd641510f007c5d3798e8bb6148541.jpg)
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 ?
![](http://jazz.net/_images/myphoto/5df13b2874c31629c2b7a3ef79b9279c.jpg)
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.