Last active
March 4, 2020 15:55
-
-
Save ursuleacv/88a1148bc626b585147b74a472d90a59 to your computer and use it in GitHub Desktop.
Sublime append comma after numbers 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
# multi curstor edit | |
select all | |
CTRL + SHIFT + L | |
# Add comma after every string | |
find: (.*+$) | |
replace: $1, | |
# Add comma after every number | |
find: (^\d+$) | |
replace: $1, | |
# Find All that match the following saleID=123456 | |
\bsaleID[=](\d+) | |
# Find all: style="left: 33.22%;" | |
(sty)\w+(=")(\w+: \d+.\d+%;") | |
# Extract last 2 characters: 1 United States US | |
find: ..$ | |
replace: $1, | |
# Add comma after every occurrence | |
find: (^\w+$) | |
replace $1, | |
# Replace new line with space | |
find: \n | |
rep: space | |
# find all 0D000000A14C17A1 | |
find: (0D00+\d+\w+\s) | |
# php docblock regex | |
\s(\/\*\*(?:[^*]|\n|(?:\*(?:[^\/]|\n)))*\*\/) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment