1 Reply Latest reply on Feb 4, 2013 10:58 PM by Lee CS Young

    Preventing Spaces from being allowed in filenames

    Bruce Buck

      We've had good success with preventing certain characters from being in filenames by setting up a Filepath Condition on Categories. For example:


      !=%[_]% (for underscores)

      !=%[&]% (for ampersands)

      !=%[']% (for apostraphes)



      However, one that seems to be difficult to figure out is spaces. Naturally I've tried:

      !=%[ ]%


      However, the problem with this is that all of these conditions search the ENTIRE filepath. Since some of our folders actually contain spaces, for instance; C:\EPDM\DESIGN STANDARDS\... then it rejects it. However, I was wondering if there was a way to have these conditions only search for/apply to ONLY the filename, or the last part of the filepath, right before the file extension. I tried this, but it doesn't seem to work:


      !=\%[ ]%.sld%


      Any ideas?