'Test regex matching on nodes.'

def test_node_regex_2(self):

    tree = ParentedTree.fromstring(u'(S    (SBJ    x)    (SBJ1    x)    (NP-SBJ    x))')
    self.assertEqual(list(tgrep.tgrep_positions(u'/^SBJ/', [tree])), [[(0,), (1,)]])
    self.assertEqual(list(tgrep.tgrep_positions(u'/SBJ/', [tree])), [[(0,), (1,), (2,)]])
