Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

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

    Help wanted · · · – – – · · ·
    2
    3
    95
    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 An
      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 Kilborn 1 Reply Last reply Reply Quote 0
      • Alan Kilborn
        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 An 1 Reply Last reply Reply Quote 1
        • Ki An
          Ki An @Alan Kilborn last edited by

          @alan-kilborn Thank You, Solved :-)

          1 Reply Last reply Reply Quote 1
          • First post
            Last post
          Copyright © 2014 NodeBB Forums | Contributors