Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE2 (PHP >=7.3)

/
^(?!(.*((\.obsidian\/hotkeys\.json)|(\.obsidian\/icons\/\w*\-icons)|(\.obsidian\/snippets)|(\.obsidian\/themes)|(\.obsidian\/plugins\/obsidian-icon-folder\/data\.json)))|(\w)).*$
/
gm

Description

This regex is for Obsidian's plugin Remotely Save. This helps ignoring all config files except some.

Submitted by LucasD - 9 months ago