{"id":1187,"date":"2022-01-05T13:34:11","date_gmt":"2022-01-05T21:34:11","guid":{"rendered":"http:\/\/www.zhuoyao.net\/?p=1187"},"modified":"2022-11-22T06:46:23","modified_gmt":"2022-11-22T06:46:23","slug":"notepad-add-to-every-line","status":"publish","type":"post","link":"https:\/\/zhuoyao.net\/index.php\/2022\/01\/05\/notepad-add-to-every-line\/","title":{"rendered":"Notepad++ add to every line"},"content":{"rendered":"\n<p><a href=\"https:\/\/stackoverflow.com\/questions\/11003761\/notepad-add-to-every-line\">https:\/\/stackoverflow.com\/questions\/11003761\/notepad-add-to-every-line<\/a><\/p>\n\n\n\n<p>Follow these steps:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Press <kbd>Ctrl<\/kbd>+<kbd>H<\/kbd> to bring up the Find\/Replace Dialog.<\/li>\n\n\n\n<li>Choose the <code>Regular expression<\/code> option near the bottom of the dialog.<\/li>\n<\/ol>\n\n\n\n<p>To add a word, such as <code>test<\/code>, at the <strong>beginning<\/strong> of each line:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Type <code>^<\/code> in the <code>Find what<\/code> textbox<\/li>\n\n\n\n<li>Type <code>test<\/code> in the <code>Replace with<\/code> textbox<\/li>\n\n\n\n<li>Place cursor in the first line of the file to ensure all lines are affected<\/li>\n\n\n\n<li>Click <code>Replace All<\/code> button<\/li>\n<\/ol>\n\n\n\n<p>To add a word, such as <code>test<\/code>, at the <strong>end<\/strong> of each line:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Type <code>$<\/code> in the <code>Find what<\/code> textbox<\/li>\n\n\n\n<li>Type <code>test<\/code> in the <code>Replace with<\/code> textbox<\/li>\n\n\n\n<li>Place cursor in the first line of the file to ensure all lines are affected<\/li>\n\n\n\n<li>Click <code>Replace All<\/code> button<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>https:\/\/stackoverflow.com\/questions\/11003761\/notepad-add-to-every-line Follow these steps: To add a word, such as test, at the beginning of each line: To add a word, such as test, at&hellip; <\/p>\n","protected":false},"author":1,"featured_media":973,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-1187","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-notepad"],"_links":{"self":[{"href":"https:\/\/zhuoyao.net\/index.php\/wp-json\/wp\/v2\/posts\/1187","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zhuoyao.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zhuoyao.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zhuoyao.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zhuoyao.net\/index.php\/wp-json\/wp\/v2\/comments?post=1187"}],"version-history":[{"count":1,"href":"https:\/\/zhuoyao.net\/index.php\/wp-json\/wp\/v2\/posts\/1187\/revisions"}],"predecessor-version":[{"id":1235,"href":"https:\/\/zhuoyao.net\/index.php\/wp-json\/wp\/v2\/posts\/1187\/revisions\/1235"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/zhuoyao.net\/index.php\/wp-json\/wp\/v2\/media\/973"}],"wp:attachment":[{"href":"https:\/\/zhuoyao.net\/index.php\/wp-json\/wp\/v2\/media?parent=1187"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zhuoyao.net\/index.php\/wp-json\/wp\/v2\/categories?post=1187"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zhuoyao.net\/index.php\/wp-json\/wp\/v2\/tags?post=1187"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}