Community
    • Login

    Search for <span and Replace it with newLine+<span ?

    Scheduled Pinned Locked Moved General Discussion
    4 Posts 2 Posters 3.4k 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.
    • vmars vernonV
      vmars vernon
      last edited by

      Hello & Thanks ,

      How can i search for <span and replace it with newLine+<span .
      or vice versa search </span and replace it with EolLine+</span .

      As always Thanks …Vern

      Claudia FrankC 1 Reply Last reply Reply Quote 0
      • Claudia FrankC
        Claudia Frank @vmars vernon
        last edited by

        Hello vern,

        replace dialog check extended.

        for the new line

        Find what: <span
        Replace with: \r\n<span
        

        but what do you mean by EolLine?

        Cheers
        Claudia

        1 Reply Last reply Reply Quote 0
        • vmars vernonV
          vmars vernon
          last edited by

          Hi Claudia , Thanks ,

          <but what do you mean by EolLine?>
          EolLine (redundant name) , I mean EodOfLine .

          Cheers
          Vern

          Claudia FrankC 1 Reply Last reply Reply Quote 0
          • Claudia FrankC
            Claudia Frank @vmars vernon
            last edited by Claudia Frank

            Hello vern,

            still not sure, but do you mean end of line?
            If so, the \r and \n are end of line chars.

            Depending on which operating system you edit a file, it will
            end a line by adding one or both of this chars to that line.
            So on mac os an editor would add an \r, on most unix oses
            an editor would add \n and windows editors using \r\n.

            So if you want to change something like

            <span> text text text
            </span>
            

            to

            <span> text text text</span>
            

            you would use, same replace settings as before,

            Find what: \r\n</span>
            Replace with: </span>
            

            Cheers
            Claudia

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