• Login
Community
  • Login

help to clean document

Scheduled Pinned Locked Moved General Discussion
3 Posts 2 Posters 238 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.
  • P
    pinuzzu99
    last edited by Mar 28, 2023, 7:15 AM

    hi there,
    from multi line document like this:

    ZmVjdGVkdf44XNob3cta/G9zdGVkLWJ5-LXNhbS1kaXZpbmU-240323?in=defectsets/dewect" primary sc-font-light">guess - 24.03.21</a>
    9udC1saWdodCI+RGVmZWN0ZWQg_mFkaW8gU2hvdyBIb3N0ZW-170323?in=decords/sets/defec-trackTitle2MtZ-class="trackItem 17.03.23</a>
    VmZW345des435ggfWQg_mFkaW8gU2h-show-host-alsthej-100323?in=records/sems/deeds2-wdrfgse-raxo" class="trackItem_2>
    

    i need to clean to have this one:

    ZmVjdGVkdf44XNob3cta/G9zdGVkLWJ5-LXNhbS1kaXZpbmU-240323
    9udC1saWdodCI+RGVmZWN0ZWQg_mFkaW8gU2hvdyBIb3N0ZW-170323
    VmZW345des435ggfWQg_mFkaW8gU2h-show-host-alsthej-100323
    

    now with regex i use this command to clean my document:
    find: in=.*.
    replace: empty

    then:
    find: ?
    replace: empty

    i need 2 steps because with ?in=.*. np++ recognizes ? as variable and not just as text
    so, is there a way to delete all values from ? to the end of line ?

    E 1 Reply Last reply Mar 28, 2023, 7:59 AM Reply Quote 0
    • E
      Ekopalypse @pinuzzu99
      last edited by Mar 28, 2023, 7:59 AM

      @pinuzzu99 said in help to clean document:

      ZmVjdGVkdf44XNob3cta/G9zdGVkLWJ5-LXNhbS1kaXZpbmU-240323?in=defectsets/dewect" primary sc-font-light">guess - 24.03.21</a>
      9udC1saWdodCI+RGVmZWN0ZWQg_mFkaW8gU2hvdyBIb3N0ZW-170323?in=decords/sets/defec-trackTitle2MtZ-class=“trackItem 17.03.23</a>
      VmZW345des435ggfWQg_mFkaW8gU2h-show-host-alsthej-100323?in=records/sems/deeds2-wdrfgse-raxo” class="trackItem_2>

      To search literally for ?, you must escape it, like: \?in=.*

      1 Reply Last reply Reply Quote 6
      • P
        pinuzzu99
        last edited by Mar 28, 2023, 12:21 PM

        oh yes, it work fine.
        thank you for reply

        Regards

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