Java - Reg. Ex. File Question
Posted
by aloh
on Stack Overflow
See other posts from Stack Overflow
or by aloh
Published on 2010-04-17T05:10:09Z
Indexed on
2010/04/17
5:13 UTC
Read the original article
Hit count: 200
java
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.
© Stack Overflow or respective owner