Replace

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, MudGuard

Post Reply
Rickje
Posts: 2
Joined: Thu Dec 18, 2003 10:14 am

Replace

Post by Rickje »

I want to delete all text that starts with 0 and ends with @ in a file

0djfhdsjhf@nnnn.com
pppp@ddd.com
ddd@dsss.com
0xdids@sdbx.com

In this text the bold text must be deleted.

How do I do this ?

Thanks
User avatar
helios
Posts: 711
Joined: Sun Mar 02, 2003 5:52 pm
Location: Helios Software Solutions
Contact:

Post by helios »

Please implement the following procedure in TextPad:

1. Open the Replace dialog box
2. Type or paste "0[^@]+@" without the quotes into the "Find what"
section
3. Leave the "Replace with" section empty
4. Under the heading "Conditions", check "Text and Regular expression"
5. Ensure the curser is at the beginning of the document
6. Click Find Next and Replace, or Replace All

I have used POSIX regular expression syntax, which can be selected from the Editor page of the Preferences dialog box.
Helios Software Solutions
Post Reply