From 62d0c71ec748f4472ba559e140f0c90a85c45448 Mon Sep 17 00:00:00 2001 From: Edward Delaporte Date: Mon, 16 Oct 2023 12:07:02 -0500 Subject: [PATCH] Vi trick for cleaning MS email address list for reuse --- doc/cheatsheets/vi.md | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 doc/cheatsheets/vi.md diff --git a/doc/cheatsheets/vi.md b/doc/cheatsheets/vi.md new file mode 100644 index 0000000..5dc7cf4 --- /dev/null +++ b/doc/cheatsheets/vi.md @@ -0,0 +1,9 @@ +## Clean Microsoft Cruft from a list of emails + +Clean a copied list of Microsoft Email Addresses for re-use: + +If they're all on one line: + +```regex +:s/[^<]+<([^>]+)>;/\1;/g +``` -- 2.47.3