Remove FQDN String

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
hankster
Posts: 15
Joined: Thu May 20, 2004 2:34 pm

Remove FQDN String

Post by hankster »

I have a CSV file full of fully-qualified domain names in the form of:

server1.domain.child.child

How do write a regex to remove everything from the first "." to the end of line? In this case, remove ".domain.child.child".

Thanks!
ben_josephs
Posts: 2461
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

Find what: \..*
Replace with: [nothing]

[X] Regular expression

Replace All
hankster
Posts: 15
Joined: Thu May 20, 2004 2:34 pm

Post by hankster »

ben_josephs wrote:Find what: \..*
Replace with: [nothing]

[X] Regular expression

Replace All
Worked perfectly. Thanks!
Post Reply