Java - Reg. Ex. File Question
- by aloh
I'm grabbing lines from a text file and sifting line by line using regular expressions. I'm trying to search for blank lines, meaning nothing or just whitespace.
However, what exactly is empty space? I know that whitespace is \s but what is a line that is nothing at all? null (\0)? newline (\n)?
I tried the test harness in the Java tutorial to try and test to see what an empty space is but no luck so far.