I'm trying to create a program that reads source files line by line (commonly .java source files that I've pasted from a book in .chm format), and, removes the line numbers so that I can compile them straight away.
NOTE: Disregard my 2nd post, this is because when I tried to edit my intial post, the option was not available and I hacked around it by using a
quote.
I'm stuck at the regex part where I'm trying to match for:
1. import java.net.*;
2. import java.awt.*;
...
...
NOTE: The line number (
in bold for emphasis) should be removed.