The missing closing parenthesis was just a typo when writing this post. But you caught it, great eye
{{replace(readPage(name), "Management", "Mgmt")}}
works⌠but i realize that I need to remove
{{readPage(name)}}
with it included, all the pages were embedded twice, once raw and the second time with the changes.
So, basically my template looks now like this:
```template
{{#each { page where name =~ /^Journal\/Week\// order by name desc } }}
**-----------------------------**
## {{replace(name, "Journal/Week/", "Week of: ")}}
**-----------------------------**
{{replace(readPage(name),"Management","Mgmt")}}
---
---
{{/each}}
```
This now makes me wonder how I can make multiple replaces at the same time, as there are several things that i want to fix in this import of my weekly snippets so the links work inside SB.
I ended up creating a script file that i run in the terminal and made all the changes.
But this is not optimal for me as I wouldnât want to every week manually change files so the links work in SB.
If i can use multiple replacement pairs within SB and with Regex, it would be incredible.