zotfile user wildcard to remove spaces in journal or book publisher title
Hey guys,
I'm having a hard time trying to write correctly a wildcard to remove spaces in journal or book publisher title, maybe because I'm using %w in folders, not filenames.
My scheme uses "/%y/%w" for folders and subfolders and the article or book title are renamed by "{%a_}{%t}".
To adapt the %w wildcard for subfolder names I'm trying to use:
{"1": {"default": {"field": "publicationTitle","operations": [{"function":"replace", "regex": "\\s", "replacement": "", "flag": "g"}]}}}
but doesn't work. Am I missing something that is particular for folders and not titles?
Thanks, G
I'm having a hard time trying to write correctly a wildcard to remove spaces in journal or book publisher title, maybe because I'm using %w in folders, not filenames.
My scheme uses "/%y/%w" for folders and subfolders and the article or book title are renamed by "{%a_}{%t}".
To adapt the %w wildcard for subfolder names I'm trying to use:
{"1": {"default": {"field": "publicationTitle","operations": [{"function":"replace", "regex": "\\s", "replacement": "", "flag": "g"}]}}}
but doesn't work. Am I missing something that is particular for folders and not titles?
Thanks, G
Upgrade Storage
{"w":{"field":"publicationTitle","operations":[{"function":"replace","regex":" ","replacement":""}]}}