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:
Are you having problems using regular expressions when processing text strings in your applications ...
All credit card numbers issued by American Express must start with 34 or 37 and have 15 digits. For ...
A free online regular expression test tool that allows to try you regular expression pattern and see...
How to write a regular expression to parse key-value entries from Windows .INI files? Here is an exa...
All credit card numbers issued by American Express must start with 34 or 37 and have 15 digits. For ...