• Login
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.
  • V
    vmars vernon
    last edited by Jan 10, 2016, 5:47 PM

    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

    C 1 Reply Last reply Jan 10, 2016, 6:08 PM Reply Quote 0
    • C
      Claudia Frank @vmars vernon
      last edited by Jan 10, 2016, 6:08 PM

      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
      • V
        vmars vernon
        last edited by Jan 10, 2016, 6:37 PM

        Hi Claudia , Thanks ,

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

        Cheers
        Vern

        C 1 Reply Last reply Jan 10, 2016, 6:51 PM Reply Quote 0
        • C
          Claudia Frank @vmars vernon
          last edited by Claudia Frank Jan 10, 2016, 6:52 PM Jan 10, 2016, 6:51 PM

          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
          4 out of 4
          • First post
            4/4
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors