Templater: Replace multiple values at once?

Hi,

I’m very new to Obsidian and not proficient in coding, so my apologies if the solution here is obvious. I’m have a template that pulls content from Zotero. It works beautifully but I’d like to have it replace all square brackets (“[“, “]”) with round brackets on import. I cant get it to work for one bracket but can’t figure out how to string two… arguments(?) together. Here’s the syntax:

{{bibliography | replace(“[”, “(”)}}

I’ve searched through this forum and others but can’t find a solution. (Again, maybe I’m just too new to recognize the solution!)

Thanks in advance for the assistance,

-Ryan

If the syntax is the same as for web clipper templates (which I dont know for certain), see Filters - Obsidian Help .

Usually, you I would expect you can also simply chain them togehter with {{bibliography|replace1|replace2}}.

1 Like