Closed saladpanda closed 1 year ago
At first I thought this would add unnecessary complexity, but actually this makes things even more powerful. I like it a lot! Thanks for your contribution!
Hi, I want to use regex_sub to extract time information from filenames. But this function is not working for me, same for example.yml. I tried in the metadata_postprocessing section:
yy: '{{ "2099-05-4-kaese" | regex_sub(".(\d{4}).","\1") }}' title: 'test-{{yy}}-end'
There's no error in webserver's log but document arrves in paperless as 'test--end' I also tried to use re.sub directly, as far as I understood jinja this could be feasible?!?
Any idea?
Best regards Rüdiger
These allow for actions like extracting the creation date from the original filename. See the rule "Parse creation date from filename" in example.yml for an example use case.