This is hardly a script or plugin thing and since we don't have a tips section in the forum I'll leave it here.
I have some special folders in multiple locations on network drives, local drives and so on that all share a common file layout schema. The folders themselves all have many folders inside following specific naming conventions.
Lets say all these root folders contain #KEYWORD in their names. Here are some examples:
C:\STUFF#KEYWORD 2016
\SERVER\DATA\SOMETHING #KEYWORD
F:\SOMETHING #KEYWORD NEW
Formerly for that schema I had a wildcard path format set up as "#KEYWORD"
It worked however the format was also propagated to the child folders - when navigating to them - as their full path still matches the wildcard e.g. C:\STUFF#KEYWORD 2016\ITEM01\ has the same folder format applied to it and all deeper subfolder levels as well. However I wanted the subfolders to keep the default format for the children without applying it explicitly with another wildcard.
After a few failed attempts regular expressions came to the rescue. Setting it like:
.#KEYWORD[^\]$
and checking use regex - does two things right:
[ul][li]Sets the root folder format but does not affect child folders[/li]
[li]Works even inside nested folders as long as they have the same keyword in their name[/li][/ul]
I hope someone finds it useful.