Community
    • Login

    remove Enter if line contains specific string

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 2 Posters 317 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.
    • GuidovanHartenG
      GuidovanHarten
      last edited by

      I want to edit an existing macro which removes the CR/LF if the line contains a specific string, such as:

      Search for “GUIDO” (case sensitive)
      Goto the end of the line
      Press DEL

      and repeat this for the whole document.

      What is the best way to do this?

      Best regards,
      Guido

      1 Reply Last reply Reply Quote 0
      • EkopalypseE
        Ekopalypse
        last edited by

        Record your find/replace step and use
        find what:(?-i)(.*GUIDO.*)(\R)
        repalce with:\1
        check Regular expression

        That should do it - I guess.

        1 Reply Last reply Reply Quote 3
        • GuidovanHartenG
          GuidovanHarten
          last edited by

          Hello Ekopalyse,
          That works fine!
          Thank you very much.

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