Community

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

    Find text and add text in new line

    Help wanted · · · – – – · · ·
    2
    2
    64
    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.
    • GG
      GG last edited by

      How to find a text and add text in new line?

      original

      abc
      def
      abc
      ghi
      abc
      

      to be updated (find abc add xyz in new line)

      abc
      xyz
      def
      abc
      xyz
      ghi
      abc
      xyz
      
      PeterJones 1 Reply Last reply Reply Quote 0
      • PeterJones
        PeterJones @GG last edited by PeterJones

        @GG ,

        • FIND = abc(\R|\z)
          (find abc followed by either a newline or the end of the file)
        • REPLACE = abc\r\nxyz\r\n
          (the \r\n is a newline sequence in windows EOL mode)
        • Search Mode = regular expression
        1 Reply Last reply Reply Quote 1
        • First post
          Last post
        Copyright © 2014 NodeBB Forums | Contributors