added function to get subnodes by search pattern, ignore patterns and break patterns