{"id":2939,"date":"2018-11-21T17:57:53","date_gmt":"2018-11-21T17:57:53","guid":{"rendered":"http:\/\/codethataint.com\/blog\/?p=2939"},"modified":"2018-11-21T18:10:27","modified_gmt":"2018-11-21T18:10:27","slug":"notepad-tricks","status":"publish","type":"post","link":"https:\/\/codethataint.com\/blog\/notepad-tricks\/","title":{"rendered":"Notepad++ Tricks"},"content":{"rendered":"<p><strong style=\"font-size:16px;color:#0088cc;\">Append and Prepend Using Regular Expressions<\/strong><\/p>\n<p><strong>Append Operation<\/strong><\/p>\n<pre>\r\nFind What    : ^[A-Z].*\r\nReplace With : $&~\r\nSearch Mode  : Regular Expressions\r\n<\/pre>\n<p><strong>Input<\/strong><\/p>\n<pre>\r\nApple\r\nMango\r\nOrange\r\n<\/pre>\n<p><strong>Output<\/strong><\/p>\n<pre>\r\nApple~\r\nMango~\r\nOrange~\r\n<\/pre>\n<p><strong>Prepend Operation<\/strong><\/p>\n<pre>\r\nFind What    : ^[A-Z].*\r\nReplace With : ~$&\r\nSearch Mode  : Regular Expressions\r\n<\/pre>\n<p><strong>Input<\/strong><\/p>\n<pre>\r\nApple\r\nMango\r\nOrange\r\n<\/pre>\n<p><strong>Output<\/strong><\/p>\n<pre>\r\n~Apple\r\n~Mango\r\n~Orange\r\n<\/pre>\n<p><strong style=\"font-size:16px;color:#0088cc;\">Replace Empty Lines<\/strong><\/p>\n<pre>\r\nEdit -> Line Operations -> Remove Empty Lines\r\n<\/pre>\n<p><strong style=\"font-size:16px;color:#0088cc;\">Prepending based on Certain Condition(Lines Starting with Numbers)<\/strong><\/p>\n<pre>\r\nFind What    : ^[1-9;].*\r\nReplace With : $&?\r\nSearch Mode  : Regular Expressions\r\n<\/pre>\n<p><strong>Input<\/strong><\/p>\n<pre>\r\n1.How are you\r\nGood\r\n2.What is your Name\r\nMugil\r\n<\/pre>\n<p><strong>Output<\/strong><\/p>\n<pre>\r\n1.How are you?\r\nGood\r\n2.What is your Name?\r\nMugil\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Append and Prepend Using Regular Expressions Append Operation Find What : ^[A-Z].* Replace With : $&#038;~ Search Mode : Regular Expressions Input Apple Mango Orange Output Apple~ Mango~ Orange~ Prepend Operation Find What : ^[A-Z].* Replace With : ~$&#038; Search Mode : Regular Expressions Input Apple Mango Orange Output ~Apple ~Mango ~Orange Replace Empty Lines&hellip; <a href=\"https:\/\/codethataint.com\/blog\/notepad-tricks\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[164],"tags":[],"class_list":["post-2939","post","type-post","status-publish","format-standard","hentry","category-notepad"],"_links":{"self":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts\/2939","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/comments?post=2939"}],"version-history":[{"count":9,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts\/2939\/revisions"}],"predecessor-version":[{"id":2948,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts\/2939\/revisions\/2948"}],"wp:attachment":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/media?parent=2939"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/categories?post=2939"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/tags?post=2939"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}