Community
    • Login

    Need to find and replace character at the end of a line

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 2 Posters 1.5k 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.
    • Marcelino SaizM
      Marcelino Saiz
      last edited by

      I have a XML file and some records are incomplete, so I have to manually fix.

      this is the correct format:
      </HivTest></HivForm>(crlf)

      unfortunately there are records that are incomplete:
      </HivTest></HivFor(crlf)

      so if I attempt to use the replace “</HivTest></HivFor”, it also finds “</HivTest></HivForm>”, so how can I find/replace just the “</HivTest></HivFor(crlf)”

      Claudia FrankC 1 Reply Last reply Reply Quote 0
      • Claudia FrankC
        Claudia Frank @Marcelino Saiz
        last edited by

        @Marcelino-Saiz

        use find dialog and check Search mode extended (on the bottom left)

        find: </HivTest></HivFor\r\n
        replace: </HivTest></HivForm>\r\n
        

        Cheers
        Claudia

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