Page 1 of 1

CLEARING DATA

Posted: Wed Dec 24, 2003 9:45 am
by Levo
Hi all,

I`ve been triying several methods but i failed. I need your urgent help.

I have data need to be cleared. The structure is like this:
++++++++++++++++
Name : Levo
Surname : Mevo
Addrees : Cevo
Telephone : 2221111222

Name : Levo1
Surname : Mevo1
Addrees : Cevo1
Telephone : 2221111222
....
+++++++++++++++++

These lines are repeating and i want to remove the address and telephone lines.

How can i do this?

anyone having ideas....
thank you.

Levo

Posted: Wed Dec 24, 2003 2:18 pm
by s_reynisson
1. Open the Replace dialog box
2. Type or paste "^Addrees :.*\nTelephone :.*$" without the quotes into
the "Find what" section
3. Make sure there is nothing in the "Replace with" section
4. Under the heading "Conditions", check "Text" and "Regular expression"
5. Ensure the cursor is at the beginning of the document
6. Click Find Next and Replace, or Replace All

This leaves emty lines in your file, if you need to delete them you can use
Find "^\n" and replace with nothing as in step 1 to 6. If you want to replace
two emty lines with a single one use Find "^\n\n" and Replace with "\n".

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

This is mostly from a post made by Stephen MacDonald, Helios Software Solutions.
HTH

Posted: Thu Dec 25, 2003 9:12 am
by Levo
THANX SO MUCH..