Last active
November 15, 2015 22:26
-
-
Save AlexandrBasan/9e1260477bf54f6c44e4 to your computer and use it in GitHub Desktop.
REGEX for find trailing whitespace
This file contains 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
Ruby function for delete leading and trailing white-spaces: | |
2.1.5 :001 > " clean up my edges ".strip | |
=> "clean up my edges" | |
Regex for trailing white-spaces: | |
[ \t]+$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment