Find and delete a line in a TXT with regexp

riken

Client
Регистрация
29.03.2012
Сообщения
118
Благодарностей
10
Баллы
18
Hi!

How can I find a line and then delete it in a text file with a regex for wxample a user thoteebesbei198.*

thanks!
 

shinigami

Client
Регистрация
01.05.2011
Сообщения
164
Благодарностей
91
Баллы
0
1. take a block of text with removing
2. use regexp macro to change found text on empty.
3. add result to the file
 
  • Спасибо
Реакции: riken

riken

Client
Регистрация
29.03.2012
Сообщения
118
Благодарностей
10
Баллы
18
Thanks, it saves the line but the whole original file gets deleted
 

riken

Client
Регистрация
29.03.2012
Сообщения
118
Благодарностей
10
Баллы
18
ohhhhhhhh! I understand now!
you are a genius!
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)