replace multiline data



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



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



  • 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”: “”



  • @cisco779k said in replace multiline data:

    from your given example

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



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



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


Log in to reply