I know this is not the notepad++ forum. Maybe this is not right place to ask that, but I simply do.
I have a file that is built up like this:
000.0.0.0 tet.de
000.0.0.0 site.net
000.0.0.0 123.com
000.0.0.0 name.com
000.0.0.0 .name.com
000.0.0.0 abc.com
000.0.0.0 .abc.com
As you see the number is always the same. Now I want to remove the line that contains a "." at the beginning of the text. It's every second line. I mark the lines from the beginning of the first "." appearance to the last, but what have I to do then?
I want to keep abc.com but not .abc.com. I tried it manually, but it's a long list.
Any suggestion how to do that in one step? (Or two) I know that this is something special.
Thanks anyway.
 
      
 Visit the Community page
 Visit the Community page Join our forums
 Join our forums Subscribe to our email newsletter
 Subscribe to our email newsletter Subscribe with RSS
 Subscribe with RSS Follow us on BlueSky
 Follow us on BlueSky Follow us on Facebook
 Follow us on Facebook Follow us on LinkedIn
 Follow us on LinkedIn Follow us on Mastodon
 Follow us on Mastodon
Its done with regular expressions
http://notepad-plus.sourceforge.net/uk/regExpList.php
Clair
I'll try it. If I don't succeed I do it manually. It doesn't matter if I try to find the right expression setting and waste several hours or do it manually what takes some hours, too.
Thank you.
Thanks again. I tried, but I failed. Not that Notepad++ can't do what I want... I'm just to stupid to make Notepad++ do what I want.
Using Replace (ctrl-h)
Find what:^.*0 \..*$
Replace with:(leave empty)
Search mode: Check the regular expression radio button
That should do it (~3 months later).