Monday, January 16, 2012

Remove Blank Lines in Java Code with NetBeans (regex)


Open the 'Find and Replace' window. Type \n\s*(\n) in the Find What field and $1 in the Replace With field. Check the Regular Expressions box and click Replace All.
Boom! All blank lines are removed now.

Share Article : Remove Blank Lines in Java Code with NetBeans (regex)
Share/Save/Bookmark

1 comments:

Anonymous said...

I was suggested this blog by my cousin. I'm not sure whether this post is written by him as no one else know such detailed about my difficulty. You are amazing! Thanks!
Bogs Women's Classic Mid Tuscany Rain Boot

Post a Comment