Community

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

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

    General Discussion
    2
    4
    3101
    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 vernon
      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 Frank 1 Reply Last reply Reply Quote 0
      • Claudia Frank
        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 vernon
          vmars vernon last edited by

          Hi Claudia , Thanks ,

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

          Cheers
          Vern

          Claudia Frank 1 Reply Last reply Reply Quote 0
          • Claudia Frank
            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
            Copyright © 2014 NodeBB Forums | Contributors