Tuesday 9 April 2019

Add quotation at the start and end of each line of string word in Notepad++ and make array in java

1.Find (in regular expression mode):
        (.+)

        Replace with:
        "\1"
        This adds the quotes:
        "amit"        "programming "        "code "        "tech"        
 2.Find (in extended mode):
        \r\n

   Replace with (with a space after the comma, not shown):
        ,

  This converts the lines into a comma-separated list:
        "amit", "programming", "code", "tech"

No comments:

Post a Comment