Internally used by sidebarMenu to find treeview items and normal items.
findSidebarItem(items, regex)
items
List to search in.
regex
Regex to apply.