Zerow
#1
I want to remove all pauses at the beginning and end of fields
So if
Format value "_FILENAME": "$trim(%_FILENAME%)"
works for FILENAME, then why does
Format value "_ALL": "$trim(%_ALL%)"
works for none of the fields?
Yes, I can use Replace with regular expression for removing one pause
Regular expression "_ALL": "^\s" -> ""
Regular expression "_ALL": "\s$" -> ""
but how about removing multiple white spaces stacked together?
I think that _ALL refers to all TAG fields - and as the filename is a file property for the file system, it does not part of tags.
see the Howtos:
Zerow
#3
Thank you. I now use
Regular expression "_ALL": "^\s+" -> ""
Regular expression "_ALL": "\s+$" -> ""
Format value "_FILENAME": "$trim(%_FILENAME%)"
But the stange thing is that
Regular expression "_ALL": "^\s+" -> ""
works also for
FILENAME [removing all the leading spaces in it], but
Regular expression "_ALL": "\s+$" -> ""
does not [leaving all the trailing spaces]
And that
Format value "_FILENAME": "$trim(%_FILENAME%)"
is suppose to take out only what is at the beginning and not also that what is at the end - and yet this one line of code takes care of both