Hi,
I have a text file and its contents look like this:
Congress NNP I-NP
September NNP B-NP
2009 CD I-NP
skip NN B-NP
to TO B-PP
-----
etc
-------
I want to delete the lines of the text file which contain a number in the beginning. So, in the third line whenever I can see 2009 I will simply remove that line from my text file.
So, new text file will have in contents:
Congress NNP I-NP
September NNP B-NP
skip NN B-NP
to TO B-PP
How to do this using a Java code? Should Regex be a solution to this?
Please help.
Thanks in advance