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

แชร์
ฝัง
  • เผยแพร่เมื่อ 13 ธ.ค. 2024

ความคิดเห็น • 34

  • @vaibhavjain3234
    @vaibhavjain3234 ปีที่แล้ว +1

    These are great tutorials! thank you

  • @mrjam6767
    @mrjam6767 2 ปีที่แล้ว +1

    Perfect, ty kind sir

    • @AmitChristian
      @AmitChristian  2 ปีที่แล้ว +1

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

  • @bernardfinucane2061
    @bernardfinucane2061 7 หลายเดือนก่อน

    Great tips!

    • @AmitChristian
      @AmitChristian  7 หลายเดือนก่อน

      Glad it was helpful!

  • @nageswararaoj5552
    @nageswararaoj5552 ปีที่แล้ว

    More useful, 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.

  • @patpp
    @patpp ปีที่แล้ว

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

  • @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. ( th-cam.com/video/2pMuodUUbKk/w-d-xo.html )

  • @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.

  • @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

  • @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 2 ปีที่แล้ว

    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.

  • @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.

  • @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!

  • @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++,
      th-cam.com/video/fBonIJ61zto/w-d-xo.html )

  • @nostatus253
    @nostatus253 ปีที่แล้ว

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

    • @AmitChristian
      @AmitChristian  ปีที่แล้ว

      Can’t you save excel file as CSV?

  • @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.