{"id":37478,"date":"2019-04-14T17:08:28","date_gmt":"2019-04-14T17:08:28","guid":{"rendered":"https:\/\/www.oracletutoring.ca\/blog\/?p=37478"},"modified":"2019-04-14T17:08:34","modified_gmt":"2019-04-14T17:08:34","slug":"notepad-using-regular-expression-to-search-and-replace","status":"publish","type":"post","link":"https:\/\/www.oracletutoring.ca\/blog\/notepad-using-regular-expression-to-search-and-replace\/","title":{"rendered":"Notepad++: using regular expression to search and replace"},"content":{"rendered":"\n<h2>Self-tutoring about Notepad++: the tutor mentions using regular expressions.<\/h2>\n<p>\nRegular expressions can be used in Notepad++ Search and Replace. For instance, suppose you want to change the variable names <span style=\"color:brown\">test2 test39 test991<\/span> to <span style=\"color:brown\">test_2 test_39 test_991 <\/span>. In Notepad++, such change would be possible using Search with a regular expression\n<\/p>\n<p>\nReplace (test)([0-9]+) with \\1_\\2\n<\/p>\n<p>\nSource:\n<\/p>\n<p>\n<a href=\"http:\/\/blog.hakzone.info\/posts-and-articles\/editors\/understanding-regex-with-notepad\/comment-page-1\/\">blog.hakzone.info<\/a>\n<\/p>\nJack of <a href=\"https:\/\/www.oracletutoring.ca\">Oracle Tutoring by Jack and Diane,<\/a> Campbell River, BC.\n\n","protected":false},"excerpt":{"rendered":"<p>Self-tutoring about Notepad++: the tutor mentions using regular expressions. Regular expressions can be used in Notepad++ Search and Replace. For instance, suppose you want to change the variable names test2 test39 test991 to test_2 test_39 test_991 . In Notepad++, such &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"more-link\" href=\"https:\/\/www.oracletutoring.ca\/blog\/notepad-using-regular-expression-to-search-and-replace\/\"> <span class=\"screen-reader-text\">Notepad++: using regular expression to search and replace<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2962,2958],"tags":[],"class_list":["post-37478","post","type-post","status-publish","format-standard","hentry","category-notepad","category-text-editors-computer-science"],"_links":{"self":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts\/37478","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/comments?post=37478"}],"version-history":[{"count":3,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts\/37478\/revisions"}],"predecessor-version":[{"id":37481,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts\/37478\/revisions\/37481"}],"wp:attachment":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/media?parent=37478"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/categories?post=37478"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/tags?post=37478"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}