Strip Code Line Spaces


/ Published in: Regular Expression
Save to your folder(s)



Copy this code and paste it in your HTML
  1. 1. Open the file
  2. 2. Click CTRL + F
  3. 3. Select "Current document" in "Find in" (You can also select the folder if you have multiple files)
  4. 4. Search in "Source code"
  5. 5. Tick "Use regular expression"
  6. 6. Type "[
  7. ]{2,}" (without quotes) in "Find"
  8. 7. Type "\n" (without quotes) in "Replace"
  9. 8. Press "Replace All"

URL: http://forums.digitalpoint.com/showthread.php?t=622323&p=5818363#post5818363

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.