Remove Specific Lines or Copy or Extract Lines with Specific Text in Notepad++ using Mark Tool

Поделиться
HTML-код
  • Опубликовано: 27 ноя 2024

Комментарии • 34

  • @vaibhavjain3234
    @vaibhavjain3234 Год назад +1

    These are great tutorials! thank you

  • @raphaelezie1443
    @raphaelezie1443 3 месяца назад

    Great video! thank you sir! Lets say I have a document that contains 123A, 456A, A123 and A425 but I want to remove all the A's at the end of the numbers without removing the A's in any other part of the document, what will be my best approach in doing this? Thanks again for the great video.

    • @AmitChristian
      @AmitChristian  3 месяца назад

      Thanks. Let me look into that. You can search something like ‘ (.*)A ‘ and replace with ‘ \1 ‘ meanwhile.

    • @raphaelezie1443
      @raphaelezie1443 3 месяца назад

      I was able to fix it by using something like (\d)A in find what and \1 in Replace with.Thank you very much for your prompt reply.I appreciate it Sir.

  • @rayluxyt
    @rayluxyt Год назад +1

    Hello Amit,
    I'm trying to do you're "^\[2022" command but in my case it's not working, all it says is "Can't find text" or "Invalid regular expression".

    • @AmitChristian
      @AmitChristian  Год назад

      Does the date that you want to search start at the beginning of the line? The above regex should work. Can you please add few sample lines in the comment here and I can give it a try.

    • @rayluxyt
      @rayluxyt Год назад

      @@AmitChristian No I wanna search for a different word, i was just using you're example.

  • @bernardfinucane2061
    @bernardfinucane2061 7 месяцев назад

    Great tips!

  • @patpp
    @patpp Год назад

    Does "YourSearchCriteria" have "AND' or "OR" function to search multiple texts in the lines?

  • @mrjam6767
    @mrjam6767 2 года назад +1

    Perfect, ty kind sir

    • @AmitChristian
      @AmitChristian  2 года назад +1

      You’re welcome. Glad to know that it was helpful

  • @shawnmarino8410
    @shawnmarino8410 2 года назад

    Hello Amit, maybe you have a video explaining but I was unable to find.
    I am trying to use notepad ++ to replace a few plc tags when I do a conversion.
    The tag would look like this to start B3:4/5 and would need to change to B3[4].5, also to note the 4 and 5 in the example above could be a 2 or 3 digit number. Are you able to help or point me to a video for reference? Appreciate your time!

    • @AmitChristian
      @AmitChristian  2 года назад +1

      Shawn, I ended up making a short video, since it is a pretty good question to demo some Regular expression features. Here it is. Hope it is helpful. ( ruclips.net/video/2pMuodUUbKk/видео.html )

  • @nageswararaoj5552
    @nageswararaoj5552 Год назад

    More useful, thank you 🙂

  • @aditiraut370
    @aditiraut370 2 года назад

    Can I use this method for "replace" function in notepad++ ?

    • @AmitChristian
      @AmitChristian  2 года назад

      Aditi, sorry for late response. Yes, you should be able to use it for replace. Thanks for the comment.

  • @thakurashu03
    @thakurashu03 Год назад

    Hello Amit,
    Lets Say I Want To Extract A Full Line Containing "XZ880" But Its In The Middle Not In The Start Like You Explained In The Video Example How Can I Select That Line?

    • @AmitChristian
      @AmitChristian  Год назад +1

      Ashu, you can simply use Regular Expression to select the line that contains XZ880, for example, you can use this regex:
      ^.*XZ880.*$
      It will select any line that contains XZ880 anywhere in the line. Hope it helps.

  • @KunjaBihariKrishna
    @KunjaBihariKrishna 2 года назад

    6:25 I would have just used Replace here and skip the marking. Not much of a point to marking the lines if they're going to be deleted. Unless I'm missing something.. I've only recently started learning about regex

  • @howthingswork5763
    @howthingswork5763 2 года назад

    Hi amit i have a question:
    Consider that i have 100 notepad files in which there are codes written in each notepad files.
    Now I want to replace line no 4 of every notepad file with some comments say Hello. How do i do that in one go?

    • @AmitChristian
      @AmitChristian  2 года назад

      You can try Find in Files feature in Notepad++. You can search and replace a specific text in multiple files in one shot? Here I have made a demo video for the same. Please take a look at it. Thanks. ( Find in Files in Notepad++,
      ruclips.net/video/fBonIJ61zto/видео.html )

  • @espectrograma
    @espectrograma 2 года назад

    Hi Amit,
    Let me know if you someday decide teaching some basic PHP, because I'm struggling to understand what is missing in a test code that I've written and is not working.

    • @AmitChristian
      @AmitChristian  2 года назад +1

      Edgar, I am not much familiar with PHP and do not think, I have expertise to teach. But I am sure there are tons of good resources out there.

    • @espectrograma
      @espectrograma 2 года назад

      @@AmitChristian Thank you!

  • @depth386
    @depth386 Год назад

    Is there a way to Mark the entire line if the text you search for is not at the beginning of the line? I am missing characters on the left.
    Alternatively, is there a way to copy text in all bookmarked lines?
    Edit: I figured out using Bookmarks so my problem is essentially solved with that as the workaround. Still it would be nice to just tell Notepad++ to mark the entire line even if the search criteria is not at the beginning (left most characters) of the line.

    • @AmitChristian
      @AmitChristian  Год назад

      If you would like to mark the entire line, you need to use '^.*YourSearchCriteria.*$'. Basically, ^ (hat) symbol means start at the beginning of the line. and $ (dollar) symbol means the end of the line. .* means any numbers of characters. So, using this regular expression, you should be able to mark the entire line. Hope it helps.

  • @nostatus253
    @nostatus253 Год назад

    I need to change xls to txt on real time ..pls guide

  • @rasyidbaharin8902
    @rasyidbaharin8902 2 года назад

    Hi Sir,
    i got problem to delete text by paragraph using notepad++ can tech me how to delete all text in paragraph.
    For example,
    feel free to tech me 😅

    • @AmitChristian
      @AmitChristian  2 года назад

      Rasyid, can you please describe, what you are trying to delete from these text and I can help you out? Thanks.