regular expression for checking line with a newline but blank line?


I am trying to get a line count on my java project. I have no eclipse plugin so I am trying to use the regular expression in search function

\n gives me everything including empty lines.

I want to exclude empty lines.

would this work?


can you help?
Who is Participating?
käµfm³d 👽Connect With a Mentor Commented:

Lazy would give character count, not line count. It would be equivalent to using just the dot if you don't include anything to bound the pattern.
ozoConnect With a Mentor Commented:
MazdajaiConnect With a Mentor Commented:
Would lazy better in this case?

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.