Search exact level headings (like H5 for example) using Regex

I need to search exact level headings like H5 , for example - ##### Heading ; using Obsidian search. It it possible ? I know that i need to use Regex to do so, but i can’t find the right expression/query that match exact H5 level… If I use in search field ##### - than i see in the results all headings from h1 to h6. And i need only level H5 for example.
Is there a possibility to make regex query that match exact h5 heading level (and exclude from results all other headings)…
Appreciate it!

You can anchor it to the beginning of the line and include the space at the end. Like so:

/^##### /

or

/^#{5} /

I can’t test it right now. Let me know if it doesn’t work.

2 Likes

Oo it really works , great ! Thank you very much! :call_me_hand: