Other Resources:
Finding blank lines in a text file
How to find blank lines in a text file using regular expression?
✍: Guest
You can use the following logic to find blank lines in a text file:
1. Read each line from the text file in a loop.
2. Validate each line with this regular expression:
^\s*$
3. If matched, you know that this line is a blank line.
2013-01-29, 0👍, 0💬
Popular Posts:
All credit card numbers issued by JCB have 3 sets of numbers: JCB cards start with 2131 have 15 digi...
Are you having problems using regular expressions when processing text strings in your applications ...
How to capture the Sogou web spider entries from Web log file? Here are some Web log file entries: 1...
How to capture the Sogou web spider entries from Web log file? Here are some Web log file entries: 1...
All credit card numbers issued by JCB have 3 sets of numbers: JCB cards start with 2131 have 15 digi...