Skip to content

Instantly share code, notes, and snippets.

View SjorsO's full-sized avatar

Sjors Ottjes SjorsO

View GitHub Profile
@SjorsO
SjorsO / patterns-help.md
Last active December 25, 2022 12:07
Obsidian paste formatter - patterns help

This is a very basic tutorial on how to use patterns in my Obsidian paste formatter plugin. The patterns are default Javascript regexes, so for for more help, you can also google "javascript regex tutorial".

Let's take this pattern as an example:

https://github.com/.+?/.+?/issues/([0-9]+)

This pattern matches links to GitHub issues, for example:

https://github.com/sjorso/obsidian-paste-formatter/issues/195