Community
    • Login

    help to clean document

    Scheduled Pinned Locked Moved General Discussion
    3 Posts 2 Posters 405 Views 1 Watching
    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.
    • pinuzzu99P Offline
      pinuzzu99
      last edited by

      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 ?

      EkopalypseE 1 Reply Last reply Reply Quote 0
      • EkopalypseE Offline
        Ekopalypse @pinuzzu99
        last edited by

        @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
        • pinuzzu99P Offline
          pinuzzu99
          last edited by

          oh yes, it work fine.
          thank you for reply

          Regards

          1 Reply Last reply Reply Quote 1

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors