Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Writing Regex Replacer

Jakob LienJakob Lien26 downloads

Replaces your text as you write, using configurable regexes.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates3

Replaces your text as you write, using configurable regexes.

An obvious use case for this is to expand for example a Jira issue into a link to that issue. The regex need to replace PROJ-123 with [PROJ-123](https://organisation.atlassian.net/browse/PROJ-123) is just:

  • source: PROJ-\d+
  • target: [$0](https://organisation.atlassian.net/browse/$0)

The actual matching and replacing is done using Javascripts replace method on your current line, but a few convenience features are added to make it easier to use.

  • For each pattern (the set of source and target regex), there are two toggles, both of which have tooltips on them:
    1. Whether or not the match needs to have whitespace before it. In the Jira example above, this avoid matching ABCPROJ-123
    2. Whether or not to require a space after the regex before matching. In the Jira example above, this avoids matching and replacing PROJ-1 before you type the second two digits.
  • Javascript replace apparently doesn't support $0 to reference the entire match directly, so the plugin automatically replaces $0 with what javascript does support, $&.

The plugin only replaces as you type, and only on the current line.

HealthExcellent
ReviewSatisfactory
About
Replaces your text as you write, using configurable regexes.
EditingAutomation
Details
Current version
1.0.2
Last updated
5 days ago
Created
5 days ago
Updates
3 releases
Downloads
26
Compatible with
Obsidian 1.13.4+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Author
Jakob LienJakob Lienjakoblien
GitHubjakoblien
  1. Community
  2. Plugins
  3. Editing
  4. Writing Regex Replacer

Related plugins

MetaEdit

Manage your metadata.

Advanced Tables

Improved table navigation, formatting, and manipulation.

BRAT

Easily install a beta version of a plugin for testing.

Homepage

Open a note, base, or workspace on startup, or set it for quick access later.

Advanced URI

Control everything with URI.

Meta Bind

Make your notes interactive with inline input fields, metadata displays, and buttons.

Thino

Quickly capture memos and display them in the sidebar with a heatmap. (Closed source)

Lazy Loader

Load plugins with a delay on startup, so that you can get your app startup down into the sub-second loading time.

Hot Reload

Automatically reload in-development plugins when their files are changed

Outliner

Work with your lists like in Workflowy or Roam Research.