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



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



  • @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


Log in to reply