Excluding files with YYYY-MM-DD or YYYY-MM-DD-tttt from search

Just as the title says. When I journal, I prefix the note with either YYYY-MM-DD or YYYY-MM-DD-tttt. I don’t want these private journal entries to show up in search in Obsidian (I journal in vim and I take notes for other things in Obsidian).

I don’t know how to write the RegEx to use in the “Excluded files” setting under “Files and links” :frowning:

Things I have tried

Since I don’t know even the basics of RegEx, I tried some stuff I found on either Stack Overflow or the Obsidian Forum to no avail:

[\d]{4}-[\d]{2}-[\d]{2}
^\d{4}-\d{2}-\d{2}

Any help would be greatly appreciated :slight_smile:

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.