Last active
December 23, 2016 10:38
-
-
Save StudioLE/7201ce9c115771555ef0 to your computer and use it in GitHub Desktop.
Useful Regex
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
// Condense triple line breaks | |
// | |
// Find | |
/\n\n\n+/ | |
// Replace | |
\n\n | |
// Remove EOL whitespace | |
// | |
// Find | |
/[ \t]+\n/ | |
// Replace | |
\n | |
// Remove EOL semicolons | |
// | |
// Find | |
/;\n/ | |
// Replace | |
\n |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment