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