find subtree in a regular expression