AnsweredAssumed Answered

Preventing Spaces from being allowed in filenames

Question asked by Bruce Buck on Feb 4, 2013
Latest reply on Feb 4, 2013 by Lee CS Young

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)

ETC

 

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?

Outcomes