Noobie Help!

General discussions about Advanced Find and Replace
Post Reply
medaniels
Posts: 1
Joined: Fri Mar 04, 2005 12:08 am

Noobie Help!

Post by medaniels » Fri Mar 04, 2005 12:14 am

I need to figure out how to clean up a file

I need to remove everything before the domain names
in each line of one file only. some .com, some.net

Example

Feb 8 21:12 mortgage.com
Feb 8 21:13 prosper.com
Feb 8 21:13 solution.com
21:13 sunset.com
Feb 8 21:18 multi.net
23:32 surety.com
Feb 8 23:34 royal.com
Feb 8 23:37 approved.net
Feb 8 23:46 global.com
Feb 9 00:01 platinum.com
00:04 global.com
Feb 9 03:57 term.com
Feb 9 03:57 line.com
Feb 9 03:59 valor.com
Feb 9 04:32 unique.net

Should end up like this
mortgage.com
prosper.com
solution.com
sunset.com
multi.net
surety.com
royal.com
approved.net
global.com
platinum.com
global.com
term.com
line.com
valor.com
unique.net

Thanks for your help in advance! :D

Abacre
Site Admin
Posts: 1198
Joined: Mon Jan 31, 2005 5:32 pm
Contact:

Post by Abacre » Fri Mar 04, 2005 7:35 am

Go to Batch replace tab. Check ON "Use regular expressions"
Put the first pair:
Search for:
^.*(\S+)\.com
Replace with:
$1.com

then put the second pair:
^.*(\S+)\.net
Replace with:
$1.net

Verify that in main menu - Action - Options - Batch Replace - you have
Modifier S in OFF position.

That's all. Sure it's also possible to make one expression for all domains.
Kind regards,
Abacre Limited
http://www.abacre.com
support@abacre.com

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests