Community
    • 登入

    Type of duplicate lines

    已排程 已置頂 已鎖定 已移動 General Discussion
    25 貼文 5 Posters 7.0k 瀏覽
    正在載入更多貼文
    • 從舊到新
    • 從新到舊
    • 最多點贊
    回覆
    • 在新貼文中回覆
    登入後回覆
    此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
    • Alan KilbornA
      Alan Kilborn @Terry R
      最後由 編輯

      @Terry-R said in Type of duplicate lines:

      …results have more to do with the number of cores…

      My 2 cents on this (and it could be worth much less) is that “throwing more hardware cores” at a problem does nothing for it unless software is written to utilize that hardware.

      Do we know that the regex engine used can “divide and conquer” this type of problem, by assigning pieces to multiple cores to work on, and then stitching together the results?

      …GHz speed…

      Well, yea, raw speed is going to have an impact, for sure.

      everything is “more speed/horsepower”

      Yes to the former, perhaps to the latter. :-)

      1 條回覆 最後回覆 回覆 引用 3
      • Sarah DuongS
        Sarah Duong
        最後由 Sarah Duong 編輯

        I want an example for you to understand:

        a_cameronsse@hotmail.com:jof6IutH
        aipunts@yahoo.co.uk:pul8OBa4
        :
        :
        abc:bcs:32da
        :
        a:
        :a
        orowski@o2.pl:sXOa6
        :
        onsse@hotmail.com:jof6
        :
        ,:
        a.tworowski@o2.pl:sXOa61Dq
        

        Now I want to get the results:

        a_cameronsse@hotmail.com: jof6IutH
        aipunts@yahoo.co.uk: pul8OBa4
        abc: bcs: 32da
        a:
        :a
        orowski@o2.pl:sXOa6
        onsse@hotmail.com:jof6
        ,:
        a.tworowski@o2.pl:sXOa61Dq
        

        What do I have to do to get that result? I cannot use expressions instead:

         Find = : 
        Replace with = 
        

        That is the content of my question 3. Currently I have the answer: That is to use the expression:
        Find = ^ :
        Replace with = leave blank
        I have searched every corner of the forum to find this simple answer. Also because the language barrier makes it difficult for me
        I really want to convey my ideas to you. Unfortunately, Google translates incorrectly. Causing misunderstandings, or sometimes causing conflicts. Hope you understand me. Sincere thanks all for your interest in my topic

        Sarah DuongS 1 條回覆 最後回覆 回覆 引用 0
        • Sarah DuongS
          Sarah Duong @Sarah Duong
          最後由 Sarah Duong 編輯

          @Sarah-Duong

          Find = ^\:
          Replace with : Leave blank
          

          I couldn’t type the punctuation so the sentence I wrote was missing.

          astrosofistaA 1 條回覆 最後回覆 回覆 引用 0
          • astrosofistaA
            astrosofista @Sarah Duong
            最後由 編輯

            Hi @Sarah-Duong, All:

            If you only need to delete lines with just a colon (“:”), a simple regex like ^:\R in the find box will do it, and of course leave the replace box empty.

            Sarah DuongS 1 條回覆 最後回覆 回覆 引用 4
            • Sarah DuongS
              Sarah Duong @astrosofista
              最後由 編輯

              @astrosofista Yes, that is exactly what I need. It seems that there are some symbols I cannot write . It replaces the color or does not display when accompanied by another symbol.

              1 條回覆 最後回覆 回覆 引用 1
              • 第一個貼文
                最後的貼文
              The Community of users of the Notepad++ text editor.
              Powered by NodeBB | Contributors