Как в Notepad++ удалить пустые строки

Всегда интересовала эта проблема. Часто попадаеются файлы с пустыми строками, которые не нужны, а даже и вредны. Есть конечно exel и NotePad SX, но мне нужен был именно Notepad++, поскольку я привык именно в нем работать.

Тем более, что в exel  это делать геморойно, а NotePad SX, где эта функция встроена в меню - remove blank lines - безбожно тупит и виснет, особенно при большом количестве удаляемых\обрабатываемых строк.

Я знал, что это возможно в Notepad++, но ковырять было лень.  Но сегодня у меня нашлось пара минут и вот вам формула.

Идем в замену

Выбираем Регулярные выражения: (\n\r\е..)

И меняем вот это \n\r

На вот это \0

Вуаля. :)

Внимание! Эта формула не удалит пустую строку, если в ней есть [tab]

Но это решаемая проблема. А потом строка и не не пустая.

Комментариев: 69

  1. El Marshal пишет:

    есть рецепт для notepad2?
    поковырялся в нем и не нашел ничего похожего.

    ps у тебя капча принципиально меня со второго раза только пускает? )

  2. admin пишет:

    El Marshal нету. Юзай Notepad++ он классынй.
    PS капча мутная какая то, проверял, через раз работает. Лучше всего перед написанием обновить страницу

  3. самок пишет:

    Сколько живи сколько учись. Не знал, что это есть в нотепаге

  4. лесдар пишет:

    не очень то до конца понял как удалить, не работает((

  5. Vova пишет:

    А можно проще. TextFX - TextFX Edit - Delete Blank Lines
    PS: Хочу в старожилы :lol:

  6. admin пишет:

    2Vova можно. Я как раз про это написал. Но зачем иметь 10 открытых программ

  7. Vova пишет:

    У меня это в Notepad++ между “Запуск” и “Плагины”.

  8. admin пишет:

    Угу там тоже есть. Только вот найти еще надо. Ну значит я открыл америку))
    Выделить все(или нужное) > TextFX > TextFX Edid > Delete blank lines

  9. Дмитрий пишет:

    Здравствуйте, помогите пожайлуста, существует большой документ в txt., открываю в нотепаде все нормально, но тут проблема. Как отчистить этот документ от ненужных ссылок, типо htpp, доменные имена, типа ru? com и тд. Возможно такое ? За ранее благодарен, буду рад что поможите.

  10. admin пишет:

    Дмитрий - проще всего его сохранить в html, открыть в браузере и все ссылки (если они гипертекстовые) - вырежутся. Далее обратно скопировать в блокнот. Заодно удалятся переносы, но мы их можем заменить на какой нибудь маркер - типа \r\n меняем на
    - тогда все останется.

  11. Юдинцев Артем пишет:

    ^$ удаляет абсолютно пустую строку

  12. Сергей пишет:

    \r\n\r\n меняем на \r\n

  13. ビットコインカジノ пишет:

    This info is worth everyone’s attention. Where can I find
    out more?

  14. ビットコインカジノ пишет:

    If you want to get a good deal from this piece of writing then you have to apply
    such methods to your won web site.

  15. Article builder пишет:

    Stunning quest there. What happened after? Thanks!

  16. crypto casino пишет:

    Hey There. I found your blog the use of msn. This
    is a very neatly written article. I will be sure to bookmark it and
    come back to learn extra of your helpful information. Thank you for the post.
    I will definitely comeback.

  17. top bitcoin casino пишет:

    Hello there I am so excited I found your weblog, I really found you by accident, while
    I was looking on Bing for something else, Nonetheless I am here
    now and would just like to say many thanks for a remarkable post
    and a all round entertaining blog (I also love the theme/design), I don’t
    have time to look over it all at the minute but I have book-marked it and also included your
    RSS feeds, so when I have time I will be back to read a great
    deal more, Please do keep up the superb work.

  18. best bitcoin sportsbook пишет:

    I am not sure where you’re getting your info, but
    good topic. I needs to spend some time learning much
    more or understanding more. Thanks for magnificent info I was looking for this info
    for my mission.

  19. btc sports betting пишет:

    Hi, Neat post. There’s an issue along with your site in internet explorer, could check this?

    IE still is the marketplace chief and a huge component to people will leave out
    your great writing because of this problem.

  20. crypto sportsbook пишет:

    I know this website offers quality depending posts and additional
    material, is there any other site which gives these kinds of information in quality?

  21. btc sportsbook пишет:

    This design is steller! You certainly know how to keep a reader entertained.
    Between your wit and your videos, I was almost moved to start my own blog (well, almost…HaHa!) Fantastic job.
    I really enjoyed what you had to say, and more than that, how you
    presented it. Too cool!

  22. bitcoin sports betting пишет:

    Excellent beat ! I would like to apprentice while you amend your website, how can i subscribe
    for a blog site? The account aided me a acceptable deal.
    I had been a little bit acquainted of this your
    broadcast provided bright clear idea

  23. ブック メーカー 仮想 通貨 пишет:

    Thanks very nice blog!

  24. top's пишет:

    Very nice post. I just stumbled upon your blog and wanted to
    say that I have truly enjoyed surfing around your blog posts.
    In any case I’ll be subscribing to your feed and I hope you
    write again soon!

  25. internet bez limitu Lte пишет:

    Great work! This is the kind of information that should
    be shared across the net. Disgrace on the seek engines for no longer
    positioning this publish higher! Come on over and talk
    over with my site . Thank you =)

  26. internet domowy lte пишет:

    I do not even know how I ended up here, but I thought
    this post was good. I don’t know who you are
    but definitely you are going to a famous blogger if you
    are not already ;) Cheers!

  27. najlepszy mobilny internet пишет:

    magnificent points altogether, you just received a brand
    new reader. What could you suggest in regards to your put up that you simply
    made a few days in the past? Any sure?

  28. internet mobilny пишет:

    I’ll immediately clutch your rss as I can not find your e-mail subscription hyperlink or e-newsletter service.
    Do you have any? Please allow me know in order that I
    could subscribe. Thanks.

  29. internet lte пишет:

    Howdy! I know this is kinda off topic but I was wondering if
    you knew where I could get a captcha plugin for my comment form?

    I’m using the same blog platform as yours and I’m having problems finding one?
    Thanks a lot!

  30. crypto coin betting пишет:

    Keep on writing, great job!

  31. best bitcoin casino пишет:

    Do you have a spam issue on this blog; I also am a blogger, and I was wanting to know your situation; we have created some nice methods and we are
    looking to swap techniques with other folks,
    why not shoot me an e-mail if interested.

  32. best Bitcoin casino пишет:

    Ridiculous story there. What occurred after?
    Take care!

  33. engine пишет:

    Hi to every one, as I am truly keen of reading this blog’s post to be updated daily.
    It carries nice stuff.

  34. brilliantly пишет:

    I’m impressed, I must say. Seldom do I come across a blog that’s equally educative and amusing, and without
    a doubt, you’ve hit the nail on the head. The problem is
    something which too few people are speaking intelligently about.
    I am very happy I came across this in my hunt for something concerning
    this.

  35. beneficial пишет:

    Hello, i read your blog from time to time and i own a similar
    one and i was just wondering if you get a lot of spam remarks?
    If so how do you protect against it, any plugin or anything you can suggest?
    I get so much lately it’s driving me mad so any assistance is very much
    appreciated.

  36. jeeter пишет:

    It is the best time to make a few plans for the long run and it’s time to be happy.

    I’ve learn this put up and if I may I wish to suggest you some interesting things or advice.
    Perhaps you can write subsequent articles regarding this article.
    I wish to read even more issues approximately it!

  37. Perceives пишет:

    Pretty! This has been an extremely wonderful article. Thank you for
    supplying this information.

  38. Suggested Online site пишет:

    I’m really impressed with your writing skills as well as with the layout on your blog.

    Is this a paid theme or did you customize it yourself?
    Either way keep up the nice quality writing, it’s rare to see a great blog
    like this one nowadays.

  39. understanding пишет:

    This blog was… how do you say it? Relevant!! Finally I have found something which helped me.

    Cheers!

  40. sizeable пишет:

    What i don’t understood is actually how you are no longer actually
    much more well-favored than you may be right now.
    You’re so intelligent. You already know thus considerably
    in relation to this topic, made me in my opinion imagine it
    from so many numerous angles. Its like women and men aren’t interested until
    it is something to accomplish with Girl gaga! Your own stuffs great.
    At all times deal with it up!

  41. waterford пишет:

    Hi there just wanted to give you a quick heads up.
    The words in your content seem to be running off
    the screen in Firefox. I’m not sure if this is a format issue or something
    to do with internet browser compatibility but I thought I’d post to
    let you know. The design and style look great though!

    Hope you get the issue fixed soon. Kudos

  42. penisverlängerung tabletten пишет:

    Hi there, I discovered your website via Google while looking for
    a similar matter, your website got here up, it seems great.

    I have bookmarked it in my google bookmarks.
    Hello there, just changed into alert to your blog through
    Google, and found that it’s really informative. I’m going to be careful
    for brussels. I’ll appreciate when you continue this in future.
    Lots of folks will likely be benefited out of your writing.
    Cheers!

  43. über пишет:

    Good site you’ve got here.. It’s hard to find quality writing like
    yours nowadays. I seriously appreciate individuals like you!

    Take care!!

  44. uusi nettikasino пишет:

    Post writing is also a fun, if you know after that you can write otherwise it is difficult to write.

  45. Kaikki Uudet Kasinot пишет:

    Hey! Someone in my Myspace group shared this site with us so I came to look it over.
    I’m definitely enjoying the information. I’m bookmarking and will be tweeting this to my followers!
    Excellent blog and superb style and design.

  46. uudet nettikasinot пишет:

    If you would like to grow your experience just keep visiting this web site and be updated with the newest news posted here.

  47. vedonlyönti sivustot пишет:

    There’s certainly a great deal to know about this subject.
    I really like all the points you have made.

  48. vedonlyöntisivut пишет:

    Quality articles is the key to interest the people to visit the website, that’s what this website is providing.

  49. hnt miner пишет:

    I’m no longer positive where you’re getting your information,
    but good topic. I must spend some time learning more or figuring out more.
    Thanks for fantastic information I was in search of this information for my mission.

  50. helium hotspot miner for sale пишет:

    What’s up, its nice post about media print, we all understand media is a impressive source of facts.

  51. vedonlyöntisivustot пишет:

    We’re a group of volunteers and opening a brand new scheme in our community.

    Your website provided us with useful info to work on.
    You’ve done an impressive process and our whole neighborhood
    will likely be grateful to you.

  52. uudet vedonlyöntisivut пишет:

    Hi there, all is going fine here and ofcourse every one is sharing information, that’s
    in fact good, keep up writing.

  53. uudet vedonlyöNtisivustot 2021 пишет:

    I’m not sure where you are getting your info, but great topic.
    I needs to spend some time learning more or understanding more.
    Thanks for great info I was looking for this info for my mission.

  54. VedonlyöNtisivut пишет:

    What’s up to all, it’s genuinely a fastidious
    for me to go to see this website, it consists of
    helpful Information.

  55. uudet vedonlyöntisivut пишет:

    What’s up everybody, here every one is sharing these
    knowledge, so it’s nice to read this weblog, and I used to pay
    a visit this weblog everyday.

  56. VedonlyöNtisivustot пишет:

    I do trust all of the concepts you have introduced for your post.

    They’re really convincing and can definitely work.
    Nonetheless, the posts are too short for starters. Could you please extend them a little from subsequent time?
    Thanks for the post.

  57. vedonlyöntisivustot пишет:

    I like the helpful info you supply to your articles. I’ll bookmark your blog and check
    once more right here regularly. I’m slightly certain I’ll be told a lot of
    new stuff proper here! Best of luck for the next!

  58. parhaat vedonlyöntisivut пишет:

    Wow, awesome weblog format! How lengthy have you ever been running a blog for?
    you make blogging look easy. The total look of your site is great, let alone the content!

  59. Parhaat VedonlyöNtisivustot 2021 пишет:

    Hello! Someone in my Myspace group shared this site with us so I came to check it out.
    I’m definitely loving the information. I’m bookmarking and will be tweeting this
    to my followers! Terrific blog and fantastic style and design.

  60. online vedonlyönti пишет:

    Howdy very cool website!! Man .. Excellent .. Superb .. I will bookmark
    your website and take the feeds additionally? I’m
    happy to find numerous helpful info here within the
    submit, we want develop extra strategies in this
    regard, thanks for sharing. . . . . .

  61. Immaturity пишет:

    Thanks very nice blog!

  62. helium пишет:

    It’s nearly impossible to find knowledgeable people on this subject,
    but you seem like you know what you’re talking about!

    Thanks

  63. helium crypto mining пишет:

    It’s going to be end of mine day, but before end I am reading this great piece of writing to improve
    my know-how.

  64. Helium пишет:

    Hi, Neat post. There is a problem together with your web
    site in internet explorer, might test this? IE nonetheless
    is the market leader and a good element of folks will
    pass over your magnificent writing because of this problem.

  65. mining helium crypto пишет:

    That is a great tip particularly to those new to the blogosphere.
    Brief but very accurate information… Thanks for sharing this one.
    A must read post!

  66. auto article writer пишет:

    Excellent, what a blog it is! This website gives helpful facts to us, keep it up.

  67. cam girl websites пишет:

    Hi! I’ve been following your web site for some time now
    and finally got the bravery to go ahead and give
    you a shout out from Dallas Texas! Just wanted to mention keep up the great job!

  68. 비트 코인 카지노 사이트 пишет:

    What’s up, its fastidious piece of writing concerning media print,
    we all be aware of media is a fantastic source of information.

  69. 仮想 通貨 ブック メーカー пишет:

    Great work! This is the type of info that are meant to be shared around the net.
    Shame on the seek engines for no longer positioning
    this submit upper! Come on over and visit my web site .

    Thanks =)

Оставьте свой отзыв!