Handle regexp as an arg to getParent (checks classes)