Searches for a string or regex pattern in the current Daily, Weekly, Monthly, Quarterly or Yearly Note and replaces it.
This action will throw an error if there isn’t a Periodic Note for the current date, so it’s best to use it after the “Check For Existence Of Periodic Note” action has determined that there is one.
Parameters
Vault
The vault to work in.
Type: Vault reference
Periodic Note Type
Options:
- Daily Note
- Weekly Note
- Monthly Note
- Quarterly Note
- Yearly Note
Search term
Either a fixed string or a regular expression, depending on the setting “Search term is a regular expression”.
Regular expressions must be valid Javascript regex, see MDN or RegExr.com (unaffiliated) for info.
Type: Text
Optional Replacement
Type: Text
Search term is a regular expression
By default, the search term is searched for as-is. With this option enabled, the search term is treated as a regular expression instead, and must follow the format /search term/
(trailing flags (g
, s
, i
, etc.) are allowed).
Type: Boolean (YES
/NO
)
Open or focus note
If enabled, after a successful operation, the note will be brought to the front in Obsidian.
Type: Boolean (YES
/NO
)
Related Links
- Search the Actions for Obsidian community forum for "Search And Replace In Periodic Note"