SOS regexes
Those regexes were tested on Sublime text editor.
Use Regex101 to validate your regexes.
find what \n(\w+)\n
replace with #ifdef something\n\1\n#endif something
Sample case:
abc
find what everyline you dont want starts with me(.+\n)
replace with
Sample case:
An important line
everyline you dont want starts with me, woohoooooo
Another important line
find what everyline you dont want starts with me(.+)and ends with me\n
replace with
Sample case:
An important line
everyline you dont want starts with me, woohoooooo, and ends with me
Another important line
find what -(([^^-])*)\n
replace with |$1||\n
Sample case:
- a line
- another line
- a third line
This article about regexes in sublime, could influence the future gists that get mature enough to be articles too :D