Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // remove trailing whitespaces (end of line)
- [ \t]+$
- // remove trailing whitespaces (beginning of line)
- ^[ \t]+
- // remove empty space, whenever there are more than one
- [ ]{2,}
- // empty lines
- ^(?:[\t ]*(?:\r?\n|\r))+
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement