-
-
Save keicoder/8025523 to your computer and use it in GitHub Desktop.
regex : Remove spaces after last semi colon on each line, Remove spaces on blank lines
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Remove spaces after last semi colon on each line of a php file. | |
find: | |
;[^\S\n]+$ | |
relace with: | |
; | |
--------------------------------------------------------------------------------------- | |
Remove spaces on blank lines | |
find: | |
^[^\S]+$ | |
replace with: | |
blank |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment