• Login
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.
  • M
    Marcelino Saiz
    last edited by Jan 12, 2017, 7:39 PM

    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)”

    C 1 Reply Last reply Jan 12, 2017, 7:55 PM Reply Quote 0
    • C
      Claudia Frank @Marcelino Saiz
      last edited by Jan 12, 2017, 7:55 PM

      @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
      1 out of 2
      • First post
        1/2
        Last post
      The Community of users of the Notepad++ text editor.
      Powered by NodeBB | Contributors