Community

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

    help to clean document

    General Discussion
    2
    3
    62
    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.
    • pinuzzu99
      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 ?

      Ekopalypse 1 Reply Last reply Reply Quote 0
      • Ekopalypse
        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
        • pinuzzu99
          pinuzzu99 last edited by

          oh yes, it work fine.
          thank you for reply

          Regards

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