-
I'm trying to get rid of instances of file formats repeated into filenames by mistake (ex: set:
content_filename: "{{ title|re_replace('[\\/:*?\"<>|]', '')|re_replace('\.mkv$', '') }}" |
Beta Was this translation helpful? Give feedback.
Answered by
BrutuZ
Feb 10, 2023
Replies: 1 comment 4 replies
-
You may have to escape |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You may have to escape
\
up to three times (\\\\
).I can never tell how many are enough for each use-case though, other than having a few
\\\\b
on my config for word boundaries I usually start with a couple since sometimes that's enough and add more as I test it 😅