• Login
Community
  • Login

replace multiline data

Scheduled Pinned Locked Moved General Discussion
7 Posts 4 Posters 1.7k 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.
  • C
    cisco779k
    last edited by Oct 13, 2019, 7:25 AM

    hi to everybody! i have this data on multiline:

    “Thumbnail”: “data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/4gIoSUNDX1BST0ZJTEUAAQEAAAIYAAAAAAIQAABtbnRyUkdCIFhZWiAAAAAAAAAAAAAAAABhY3NwAAAAAAAAAAAAAFhZWiAAAAAAAABvogAAOPUAAAOQWFlaIAAAAAAAAGKZAAC3hQAAGNpYWVogAAAAAAAAJKAAAA+EAAC2z3BhcmEAAAAAAAQAAAAC…”

    and i want delete all data or replace with “Thumbnail”: “”
    how to dell all data?? this entries it is repeated several times in the document…

    1 Reply Last reply Reply Quote 0
    • R
      rinku singh
      last edited by Oct 13, 2019, 12:48 PM

      @cisco779k said in replace multiline data:

      “Thumbnail”: “data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/4gIoSUNDX1BST0ZJTEUAAQEAAAIYAAAAAAIQAABtbnRyUkdCIFhZWiAAAAAAAAAAAAAAAABhY3NwAAAAAAAAAAAAAFhZWiAAAAAAAABvogAAOPUAAAOQWFlaIAAAAAAAAGKZAAC3hQAAGNpYWVogAAAAAAAAJKAAAA+EAAC2z3BhcmEAAAAAAAQAAAAC…”

      multiline ?? copy these data and paste in npp this data is not multiline
      you can share pastebin link

      1 Reply Last reply Reply Quote 0
      • C
        cisco779k
        last edited by Oct 13, 2019, 1:52 PM

        no, you do not have me understand…
        i have one file with Thumbnail data repeated several times, but on date value changes
        ex:
        “Thumbnail”: “data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQAB…"
        other line…
        “Thumbnail”: “data:image/jpeg;base64,/9j/234827598745845345…"
        other line…
        “Thumbnail”: “data:image/jpeg;base64,/9j/4A34t34tt54t54t45t45t4t5…"

        i want replace all value on my file
        “Thumbnail”: “data:image/jpeg;base64,/various number and letter…"
        with “Thumbnail”: “”

        E R 2 Replies Last reply Oct 13, 2019, 2:08 PM Reply Quote 0
        • E
          Ekopalypse @cisco779k
          last edited by Ekopalypse Oct 13, 2019, 2:09 PM Oct 13, 2019, 2:08 PM

          @cisco779k said in replace multiline data:

          from your given example

          check regular expression
          find what:(?<="Thumbnail": ").*?(?=")
          replace with is empty
          press replace all

          1 Reply Last reply Reply Quote 1
          • R
            rinku singh @cisco779k
            last edited by rinku singh Oct 13, 2019, 2:51 PM Oct 13, 2019, 2:50 PM

            @cisco779k said in replace multiline data:

            “Thumbnail”: “data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQAB…"
            other line…
            “Thumbnail”: “data:image/jpeg;base64,/9j/234827598745845345…"
            other line…
            “Thumbnail”: “data:image/jpeg;base64,/9j/4A34t34tt54t54t45t45t4t5…"
            i want replace all value on my file
            “Thumbnail”: “data:image/jpeg;base64,/various number and letter…"
            with “Thumbnail”: “”

            """ “““
            check regular expression
            find what: “Thumbnail”: “.*"
            replace with: “Thumbnail”: “”
            press replace all
            Wrap around : checked true

            1 Reply Last reply Reply Quote 0
            • C
              cisco779k
              last edited by Oct 13, 2019, 3:38 PM

              oh yesss! great!
              tanxs to everybody for your support!

              1 Reply Last reply Reply Quote 0
              • P
                Prahlad-Makwana4145
                last edited by Feb 5, 2020, 5:58 AM

                Hello,@cisco779k

                Follow these steps to replace multi line data :

                Step 1 :- Go to the menu Plugins>Plugin Manager>Show Plugin Manager
                Step 2 :- Than select Check Tool Bucket and Install.
                Step 3 :- Restart Notepad++.
                Step 4 :- Press ALT + SHIFT + F to multi line edit.

                I hope above information will be useful for you.
                Thank you.

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