Блокнот ++ Стандартный список справки

239
user590817

Привет у меня есть мой список, как это:

Name | Surname | email | Name | Surname | email | Name | Surname | email | Name | Surname | email | 

Я хочу скопировать всю электронную почту, как это:

email email email email 

Как я могу сделать это с помощью регулярных выражений в блокноте ++?

0

1 ответ на вопрос

0
Yorik

Make a backup file and then try this on the backup:

Find What: ^(.+) \| (.+) \| (.+) \| Replace with: \3 

The parens "()" are capture groups, the "\|" escapes the pipe symbol so it is not interpreted as a command, the "^" means start of line.

The "\3" means replace what is found with the 3rd capture group.

Похожие вопросы