This plugin enhances the default Obsidian document search & replace functionality to include basic Regex queries
- This plugin is in an early testing phase. Please backup any documents before attempting to do a regex search & replace.
- Regex functionality added to the default Obsidian search
- Regex also works with Search & Replace
- Capture groups are now supported for replacement
- Use dollar sign references to refer to capture groups: $1 $2 etc
- Support for case-insensitive mode using /foo/i
- If you want to search using RegEx, enter your search into the default search box and use the standard regex syntax:
/[Ff]oo/
- Advanced RegEx Mode modifiers
- Regex searching in preview mode
- Mobile usage
- Copy over
main.js
,styles.css
,manifest.json
to your vaultVaultFolder/.obsidian/plugins/obsidian-regex-search-replace/
.
- Big thanks to @pjeby for creating https://github.com/pjeby/monkey-around and helping write 80% of this code :)