Sublime - delete all lines containing specific value
For people that don't want to write a regex - you can just select the search string, hit ctrl+cmd+g
or pick "Quick Find All" from the menu, which will get you selections for each matching string; from there Home
will move every selection cursor to the start of the line, shift+End
will select every matching line, and del, del
will delete all of them.
Multiple cursor editing is fun!
You can do a regular expression search-and-replace:
Click Find > Replace.
Ensure that the Regular Expression button is pressed.
For the Find What field, put:
^.*No records to send and/or not connected.*\n
Leave the Replace With field empty.
Click Replace All