How to Delete file after @

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, MudGuard

Post Reply
talput
Posts: 1
Joined: Thu Jun 28, 2012 6:14 am

How to Delete file after @

Post by talput »

Hi....i'm new member here, before post this question i seach first and cant find the answer.

i have file like this (colom 1=email and column 2= username )
member1@yahoo.com:uieroer
user12@hotmail.com:iekorler
user13@gmail.com:kolimper

I need to delete all data after @ and keep the :

The result will be
member1:uieroer
user12:iekorler
user13:kolimper

Thanks for help...
ak47wong
Posts: 703
Joined: Tue Aug 12, 2003 9:37 am
Location: Sydney, Australia

Post by ak47wong »

Click Search > Replace and enter the following:

Find what: @[^:]*
Replace with:
[nothing]

Select the Regular expression check box and click Replace All.
Post Reply