Community
    • Login

    how to keep only the texts in Quotation symbol and remove everything else?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 2 Posters 381 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Ki AnK
      Ki An
      last edited by

      i have text file as

      1. adehtf-random texts
      2. yfkuyf "IMPORTANT Texts to keep" krtfctfk
      3. random-random-textsjh
      

      i want to keep “IMPORTANT Texts to keep”
      that is just text within " " and remove everything else

      or other way- just select texts within, and copy to new text file
      output as

      "IMPORTANT Texts to keep"
      

      output with Quotation mark or without
      either way is OK

      there are many such instances of " " so its difficult to do manually

      please help

      Alan KilbornA 1 Reply Last reply Reply Quote 0
      • Alan KilbornA
        Alan Kilborn @Ki An
        last edited by Alan Kilborn

        @ki-an said in how to keep only the texts in Quotation symbol and remove everything else?:

        either way is OK

        I’d suggest this marking operation (press Ctrl+m from the editor to get the Mark window up, then set up as shown and press the Mark All button):

        b64a9a57-70f5-406c-9205-f403aec39e37-image.png

        Follow that by a press of the Copy Marked Text button.

        If you don’t want the " to be present in what you copy, change the Find what expression to this before doing the Mark All:

        (?<=").+?(?=")

        Ki AnK 1 Reply Last reply Reply Quote 1
        • Ki AnK
          Ki An @Alan Kilborn
          last edited by

          @alan-kilborn Thank You, Solved :-)

          1 Reply Last reply Reply Quote 1
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors