I see. You want to put here part of the regex that picks out `|filename|` or `{filename}`, not the whole regex pattern. Please correct me if I am wrong.