{"id":106,"date":"2014-01-22T18:30:55","date_gmt":"2014-01-22T18:30:55","guid":{"rendered":"https:\/\/openbook.ums.edu.my\/userguide\/chapter\/search-replace\/"},"modified":"2024-09-19T04:19:25","modified_gmt":"2024-09-19T04:19:25","slug":"search-replace","status":"publish","type":"chapter","link":"https:\/\/openbook.ums.edu.my\/userguide\/chapter\/search-replace\/","title":{"raw":"Search &amp; Replace","rendered":"Search &amp; Replace"},"content":{"raw":"The Search and Replace tool allows you to find and replace words or phrases throughout your entire book. Use this feature with caution, as it makes changes directly to your book's database and cannot easily be undone. To use the Search &amp; Replace tool, follow these steps:\n<ol>\n \t<li>Navigate to\u00a0<strong>Tools &gt; Search &amp; Replace\u00a0<\/strong>from the left sidebar menu of your book's dashboard<\/li>\n \t<li>Enter the word or phrase you wish to search for in the \"Search For\" input field<\/li>\n \t<li>Enter the word or phrase you wish to replace that content with in the \"Replace With\" textbox (<strong>NOTE:<\/strong> leaving this section blank is also an option if you'd like to simply delete the content)<\/li>\n \t<li>Click \"Preview Replacements\" to review where the searched content appears in your book<\/li>\n \t<li>Click \"Replace &amp; Save\" to replace\u00a0<strong>all\u00a0<\/strong>instances of the searched content throughout your book\n<img class=\"alignnone wp-image-344 size-full\" src=\"https:\/\/pressbooks.pub\/app\/uploads\/sites\/4748\/2021\/10\/Screen-Shot-2019-05-17-at-4.30.07-PM-e1633479101875.png\" alt=\"The search and replace form \" width=\"1194\" height=\"473\"><\/li>\n<\/ol>\n<div class=\"textbox\"><strong>NOTE:<\/strong> ALL\u00a0instances of the searched content will be replaced if you click \"Replace &amp; Save\". There is no instant way to undo a global search and replace. However, you can always revert to the most recent version of each chapter using the revision history.<\/div>\n<div><\/div>\n<div>Clicking \"Preview Replacements\" allows you to see a side-by-side presentation of the searched word or phrase and how it will look once it's replaced.<\/div>\n<div><\/div>\n<div><img class=\"alignnone wp-image-1340 size-full\" src=\"https:\/\/pressbooks.pub\/app\/uploads\/sites\/4748\/2022\/10\/search3.png\" alt=\"An example of a search and replace preview\" width=\"831\" height=\"1156\"><\/div>\n<h2><b>Tips<\/b><\/h2>\n<ul>\n \t<li>The search is <strong>case sensitive.\u00a0<\/strong>This means that in order to ensure that you find every instance of a word, you may need to run a search and replace several times (once all lower case, once with the first letter capitalized and once in all caps).<\/li>\n \t<li><strong>Every<\/strong> instance of your search term will be found, even if it is part of another word. For example, searching for \"<span style=\"background-color: #00ffff;\">he said<\/span>\" will also highlight part of \"s<span style=\"background-color: #00ffff;\">he said<\/span>\", or searching for \"<span style=\"background-color: #00ffff;\">book<\/span>\" would also highlight part of \"Press<span style=\"background-color: #00ffff;\">book<\/span>s\" and change it just the same (see screenshot below).<\/li>\n \t<li>If you're searching for something that appears very frequently in your book, the Search &amp; Replace tool may fail or produce undesirable results. In this case, we recommend copying the textual content into a text editor and using its native search &amp; replace functions to modify your text.<\/li>\n<\/ul>","rendered":"<p>The Search and Replace tool allows you to find and replace words or phrases throughout your entire book. Use this feature with caution, as it makes changes directly to your book&#8217;s database and cannot easily be undone. To use the Search &amp; Replace tool, follow these steps:<\/p>\n<ol>\n<li>Navigate to\u00a0<strong>Tools &gt; Search &amp; Replace\u00a0<\/strong>from the left sidebar menu of your book&#8217;s dashboard<\/li>\n<li>Enter the word or phrase you wish to search for in the &#8220;Search For&#8221; input field<\/li>\n<li>Enter the word or phrase you wish to replace that content with in the &#8220;Replace With&#8221; textbox (<strong>NOTE:<\/strong> leaving this section blank is also an option if you&#8217;d like to simply delete the content)<\/li>\n<li>Click &#8220;Preview Replacements&#8221; to review where the searched content appears in your book<\/li>\n<li>Click &#8220;Replace &amp; Save&#8221; to replace\u00a0<strong>all\u00a0<\/strong>instances of the searched content throughout your book<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-344 size-full\" src=\"https:\/\/pressbooks.pub\/app\/uploads\/sites\/4748\/2021\/10\/Screen-Shot-2019-05-17-at-4.30.07-PM-e1633479101875.png\" alt=\"The search and replace form\" width=\"1194\" height=\"473\" \/><\/li>\n<\/ol>\n<div class=\"textbox\"><strong>NOTE:<\/strong> ALL\u00a0instances of the searched content will be replaced if you click &#8220;Replace &amp; Save&#8221;. There is no instant way to undo a global search and replace. However, you can always revert to the most recent version of each chapter using the revision history.<\/div>\n<div><\/div>\n<div>Clicking &#8220;Preview Replacements&#8221; allows you to see a side-by-side presentation of the searched word or phrase and how it will look once it&#8217;s replaced.<\/div>\n<div><\/div>\n<div><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1340 size-full\" src=\"https:\/\/pressbooks.pub\/app\/uploads\/sites\/4748\/2022\/10\/search3.png\" alt=\"An example of a search and replace preview\" width=\"831\" height=\"1156\" \/><\/div>\n<h2><b>Tips<\/b><\/h2>\n<ul>\n<li>The search is <strong>case sensitive.\u00a0<\/strong>This means that in order to ensure that you find every instance of a word, you may need to run a search and replace several times (once all lower case, once with the first letter capitalized and once in all caps).<\/li>\n<li><strong>Every<\/strong> instance of your search term will be found, even if it is part of another word. For example, searching for &#8220;<span style=\"background-color: #00ffff;\">he said<\/span>&#8221; will also highlight part of &#8220;s<span style=\"background-color: #00ffff;\">he said<\/span>&#8220;, or searching for &#8220;<span style=\"background-color: #00ffff;\">book<\/span>&#8221; would also highlight part of &#8220;Press<span style=\"background-color: #00ffff;\">book<\/span>s&#8221; and change it just the same (see screenshot below).<\/li>\n<li>If you&#8217;re searching for something that appears very frequently in your book, the Search &amp; Replace tool may fail or produce undesirable results. In this case, we recommend copying the textual content into a text editor and using its native search &amp; replace functions to modify your text.<\/li>\n<\/ul>\n","protected":false},"author":1,"menu_order":27,"template":"","meta":{"pb_show_title":"","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[],"contributor":[],"license":[],"class_list":["post-106","chapter","type-chapter","status-publish","hentry"],"part":53,"_links":{"self":[{"href":"https:\/\/openbook.ums.edu.my\/userguide\/wp-json\/pressbooks\/v2\/chapters\/106","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/openbook.ums.edu.my\/userguide\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/openbook.ums.edu.my\/userguide\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/openbook.ums.edu.my\/userguide\/wp-json\/wp\/v2\/users\/1"}],"version-history":[{"count":1,"href":"https:\/\/openbook.ums.edu.my\/userguide\/wp-json\/pressbooks\/v2\/chapters\/106\/revisions"}],"predecessor-version":[{"id":107,"href":"https:\/\/openbook.ums.edu.my\/userguide\/wp-json\/pressbooks\/v2\/chapters\/106\/revisions\/107"}],"part":[{"href":"https:\/\/openbook.ums.edu.my\/userguide\/wp-json\/pressbooks\/v2\/parts\/53"}],"metadata":[{"href":"https:\/\/openbook.ums.edu.my\/userguide\/wp-json\/pressbooks\/v2\/chapters\/106\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/openbook.ums.edu.my\/userguide\/wp-json\/wp\/v2\/media?parent=106"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/openbook.ums.edu.my\/userguide\/wp-json\/pressbooks\/v2\/chapter-type?post=106"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/openbook.ums.edu.my\/userguide\/wp-json\/wp\/v2\/contributor?post=106"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/openbook.ums.edu.my\/userguide\/wp-json\/wp\/v2\/license?post=106"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}