I have some output of parser and i want to search substing in it. the output:
(ROOT
(S
(NP (DT the) (NN author))
(VP (VBZ has)
(VP (VBN failed)
(S
(VP (TO to)
(VP
(VP (VB catch)
(PRT (RP up))
(PP (IN with)
(NP
(NP (JJ recent) (NNS discoveries))
(PP (IN about)
(NP (NNP Thespis))))))
(PRN (, ,)
(S
(NP (NNP Gilbert)
(CC and)
(NNP Sullivan))
(VP (VBZ 's)
(ADJP (JJ first))))
(, ,))
(NP (`` `) (JJ lost) ('' ') (JJ joint) (NN work)))))))
(. .)))
i want to match this part:
(PRN (, ,)
(S
(NP (NNP Gilbert)
(CC and)
(NNP Sullivan))
(VP (VBZ 's)
(ADJP (JJ first))))
(, ,))
in this part PRN be static. How would I write regex for that?