Page 1 of 1

Remove FQDN String

Posted: Mon Nov 10, 2008 6:24 pm
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!

Posted: Mon Nov 10, 2008 6:44 pm
by ben_josephs
Find what: \..*
Replace with: [nothing]

[X] Regular expression

Replace All

Posted: Mon Nov 10, 2008 8:05 pm
by hankster
ben_josephs wrote:Find what: \..*
Replace with: [nothing]

[X] Regular expression

Replace All
Worked perfectly. Thanks!