Community
    • Login

    Replace CR/LF between two delimiter ~ across multiple lines

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 2 Posters 1.3k 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.
    • Pat ChownP
      Pat Chown
      last edited by

      I need to link to a text file to get “blurb” for product with file layout is [KEY###] ~blurb copy in multiple lines and CR/LF~ (delimited by ~

      See sample text below

      I’ve tried ((?:^|\r\n)[^~]+“[^\r\n”]+)\r\n([^~]*+")

      770939 ~<center><i>“abc abc abc”</i>CR/LF
      -123456abcabc</center>CR/LF
      <p>CR/LF
      the qucik brown foxthe qucik brown foxthe qucik brown foxthe qucik brown foxthe qucik brown foxthe qucik brown foxthe qucik brown foxthe qucik brown foxCR/LF
      <p>CR/LF
      it was a dark and stormy nightCR/LF
      <p>CR/LF
      cane you<i>BELIEVE</i> this is real-life.CR/LF
      …~CR/LF

      Scott SumnerS 1 Reply Last reply Reply Quote 0
      • Scott SumnerS
        Scott Sumner @Pat Chown
        last edited by Scott Sumner

        @Pat-Chown

        Well, it is pretty difficult from your description to tell exactly what you want to do, but a Find-what box value (for a regex search) that will match into group #1 the multi-line data delimited by the ~'s would be: \d{6}\s~(?s)(.+?)~

        Hopefully this is of some help to you. If not, feel free to describe your situation a bit more. :-)

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