- When dealing with files that have over 50k lines, avoid multi-select.
- When doing a search/replace on a large file, do find all then replace all.
Beginning of line
^
End of line
$
Select first word of the line
^[^\s]*
Trailing Whitespace
[ \t]*$
Wildcard in between prefix and suffix
prefix[^*]*?suffix
Find duplicate lines and unique lines
- Sort the file so that all duplicates are on top of each other
- Run the following command to select all duplicates via a find, find all, replace or replace all.
^(.+)$\n^\1$
- If you cut the selection, you'll have all duplicates on your clipboard and all unique values will be left in the document.
- Select all the text and permute the result so that it removes all empty lines but one.