Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE2 (PHP >=7.3)

/
\[\[(([A-Za--ú0-9_.]{1,}?)\.)([A-Za-z0--ú_]{1,}?)\]\]
/
gm

Description

Obsidian/Wikilinks/Dendron... uses Hierarchical notes (Roam)... I want to match the last then use VSC extension inline-fold : https://github.com/moalamri/vscode-inline-fold

Thread https://github.com/dendronhq/dendron/issues/1751#issuecomment-1880952339

Submitted by anonymous - a year ago