zotfile user wildcard to remove spaces in journal or book publisher title

edited September 3, 2023
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
  • Solved:

    {"w":{"field":"publicationTitle","operations":[{"function":"replace","regex":" ","replacement":""}]}}
Sign In or Register to comment.