• Login
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 438 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.
  • K
    Ki An
    last edited by Dec 3, 2021, 1:22 PM

    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

    A 1 Reply Last reply Dec 3, 2021, 1:31 PM Reply Quote 0
    • A
      Alan Kilborn @Ki An
      last edited by Alan Kilborn Dec 3, 2021, 1:33 PM Dec 3, 2021, 1:31 PM

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

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

      K 1 Reply Last reply Dec 3, 2021, 1:37 PM Reply Quote 1
      • K
        Ki An @Alan Kilborn
        last edited by Dec 3, 2021, 1:37 PM

        @alan-kilborn Thank You, Solved :-)

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