Add -g/-r for controlling if we use globbing or regexs for selecting nod...

...es