Skip to main content

New answers tagged

0 votes

Copy text extracted from multiple lines

An alternate approach, though Vivian’s is great: Clear a register: qaq Yank all the emails to that register: :global/email/normal! 0f:l"Ayt) This won’t put newlines between the emails. A ...
D. Ben Knoble's user avatar
  • 27.7k
1 vote
Accepted

Copy text extracted from multiple lines

I would do: :%s/.*(email: \(.*\)).*/\1/ This substitution would keep only the email address in each of the lines. You could then copy them all: :%y And then undo the changes: u
Vivian De Smedt's user avatar

Top 50 recent answers are included