Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    remove Enter if line contains specific string

    Help wanted · · · – – – · · ·
    2
    3
    75
    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.
    • GuidovanHarten
      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
      • Ekopalypse
        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
        • GuidovanHarten
          GuidovanHarten last edited by

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

          1 Reply Last reply Reply Quote 1
          • First post
            Last post
          Copyright © 2014 NodeBB Forums | Contributors