Saturday, October 24, 2009

Remove unnecessary space between lines (regular expression)

Reference: http://forums.digitalpoint.com/showthread.php?t=622323
Easier:
  1. Open the file
  2. Click CTRL + F
  3. Select "Current document" in "Find in" (You can also select the folder if you have multiple files)
  4. Search in "Source code"
  5. Tick "Use regular expression"
  6. Type "[\r\n]{2,}" (without quotes) in "Find"
  7. Type "\n" (without quotes) in "Replace"
  8. Press "Replace All"
Related Posts Plugin for WordPress, Blogger...