finding regex patterns in text file
i have a text file which contains information in this format..
[ -LRB-/-LRB- Applied/NNP Materials/NNPS Inc/NNP ] [ said/VBD [ it/PRP ] [ and/CC [ Belgium/NNP ] [ 's/POS IMEC/NNP ] [ had/VBD entered/VBN into/IN [ a/DT three-year/JJ collaboration/NN agreement/NN ] [ to/TO develop/VB [ advanced/JJ metallization/NN process/NN technology/NN ./.In ] [ a/DT statement/NN ] [ late/RB on/IN [ Monday/NNP ]
i need to list the words that are in between the square brackets only...i mean the output should be something like
-LRB-/-LRB- Applied/NNP Materials/NNPS Inc/NNP
Belgium/NNP and so on...
is it possible to do it with regex patterns? i tried but nothing worked... pls help..