Community
    • Login

    Search&Replace certain string text, and replace/remove it

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    4 Posts 2 Posters 305 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.
    • Joc BedenčičJ
      Joc Bedenčič
      last edited by Joc Bedenčič

      ABCa: 12
      ABCd, 35

      and replace it with

      ABC

      PeterJonesP 1 Reply Last reply Reply Quote 0
      • PeterJonesP
        PeterJones @Joc Bedenčič
        last edited by PeterJones

        @Joc-Bedenčič

        FIND WHAT = ABC.*
        REPLACE WITH = ABC
        SEARCH MODE = Regular Expression
        uncheck “dot matches newline”

        ----

        Useful References

        • Please Read Before Posting
        • Template for Search/Replace Questions
        • Formatting Forum Posts
        • Notepad++ Online User Manual: Searching/Regex
        • FAQ: Where to find other regular expressions (regex) documentation
        Joc BedenčičJ 1 Reply Last reply Reply Quote 1
        • Joc BedenčičJ
          Joc Bedenčič @PeterJones
          last edited by

          @PeterJones

          I forgot, it’s

          ABCdh57DEFGH
          ABCff87DEFGH

          so it will be

          ABCDEFGH

          PeterJonesP 1 Reply Last reply Reply Quote 0
          • PeterJonesP
            PeterJones @Joc Bedenčič
            last edited by PeterJones

            @Joc-Bedenčič ,

            FIND WHAT = ABC.*DEFGH
            REPLACE WITH = ABCDEFGH
            SEARCH MODE = Regular Expression
            uncheck “dot matches newline”

            … and you really need to read and understand at least the Template for Search/Replace Questions from my list of useful references.

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