LPS-37352 use a regexp to validate files and folder names --> please read instructions below :)

Hi Brian, 

in order to review this, just review the whole thing as a single commit and then read only the last commit. I have also sent an email with some comments.

thanks!