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
CLEARING DATA
Moderators: AmigoJack, bbadmin, helios, MudGuard
- s_reynisson
- Posts: 939
- Joined: Tue May 06, 2003 1:59 pm
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
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
Then I open up and see
the person fumbling here is me
a different way to be
the person fumbling here is me
a different way to be