How to Use Find & Replace

How to use our brand new feature "Find & Replace" to replace content in your Canvas Instance.

Using Find and Replace

The Find and Replace option will appear on the search landing page next to the triple-dot menu.

https://lh7-us.googleusercontent.com/HAKCuUh3RMWAAAg308Vk0OkD0bUNCwKzceE-fAycEQsa4dzVsZK2act31Lb_5ajFw6Lq0iapxNW0EKwlHCzhqYfduBKEvgS2_BXkvgRMLPrCqlmAIP-MzHRRswWiFkREHiBY6FLEAEKOXMCaZ0vAYU8

Canvas Authorization

The first time a user interacts with Find and Replace, they will be prompted to authorize with Canvas. To begin, click on the Continue button and follow the prompts in the new tab that launches.

Authorization of Find and Replace - Watch Video

 

You will be asked to Authorize with Atomic Search. After you click ‘Authorize’ on the next screen that appears, the process is complete. Return to Canvas, and after a few seconds, Atomic Search will reload and continue to the Find and Replace UI.

How to search

Find and replace allows you to search across your course and edit the HTML of your Canvas Page content in bulk using your existing Atomic Search course index.

  • Find

    • This text field has an auto-expandable multi-line control to enter your search criteria.

  • Choose how to find results by clicking one or more of the following buttons.

    • Match case - When this setting is enabled, it will only return matches where the casing matches exactly. For example, searching for ‘dna’ with this setting turned off will match ‘dna’, ‘Dna’, or ‘DNA’. With the setting turned on, it will match only ‘dna’.

    • Match whole word - When this setting is turned on, it will not match against parts of words. For example, searching ‘able’ with the setting turned off will match ‘able’, ‘stable’, or ‘tables’. With the setting turned on, it will match only ‘able’

    • Regular expression - Allows for more advanced matches using a regular expression engine. It uses the Elixir Regex module, which is documented here: https://hexdocs.pm/elixir/Regex.html . For example, you could switch any links going to http://docs.google.com or http://www.google.com to HTTPS links with this search text: “http://(docs|www).google.com” and this replace text “https://\1.google.com”

  • Replace with

    • This text field has an auto-expandable multi-line control to enter your desired replacement criteria.

https://lh7-us.googleusercontent.com/to24wAENHPqL1WWsBseghx8InbV8t7YYPFHKjGDVy9A534p-Ep2-aGATI7W5I7rDYBSMHowxs4m7_TR-flFsQwkx-gk7WjmOXo2oevNRJWdMup7Il4Jk6_fjJt9-aRgKfSOSIBs1BiEc3t7cws50vDg

Once you click the Find button, your search will be initiated, and results will start to appear. A loading indicator will appear at the top of the right panel, indicating it's still searching. When the search is done, the loader will disappear.

This results list lets you preview your changes for each result before running the bulk action.

We display matches by listing the names and types of the items where results were found, along with a snippet of the match and replace. We currently only display the first five items. There is a dropdown to show more results at once.

 

https://lh7-us.googleusercontent.com/xaESLgZYFw6NRUbiSYx0V2ppvNjODQ-04M0DJ6yqSmUF82FuLU_VUGwvA9hFvyKSUwIakwjCPUYcHxdRFiZ8IODVpOFETfl_apI7ls6_GfSmDge6MXmByAIdV8I1v6j8WCY82xNUszJ48wjN_Xt0glU

 

The matched text is highlighted in red, and the pending replacement text is highlighted in green.

To remove a result from your list, hover over the result and click the X button that appears.  This will skip over the Ignored result when the replacement is started. The ignored results will reappear if you initiate another search.

Replace All

 

Once you have done a find, and at least one result has returned, a new 'Replace All' button will appear next to the 'Find' button.

Note: Clicking this button will cause most of the UI to become grayed out and read-only while the process runs. You can leave and come back to this page at any time.

You will see a status bar at the top indicating how many matches have been replaced and how many total matches there are.

While in progress, you can press the 'Cancel' button to halt the replacements. After canceling, you can continue accepting or dismissing individual items or begin 'Replace all.'

 

https://lh7-us.googleusercontent.com/YbeAd320d6HdavvSenMRh7bRYk_d-lPjje2v6uaJ2rMBlnjeZdiNcXGQZrQPI70chiQ6E7lAtsff3Lird7f2RNhXcdJQ2P0Hae5TpXNla1Rf5bpCF_7_PJ1GxAIqm9AjIX8mNS9dJWPFPB5ctxABTn4

Once the replacement is finished, an 'Undo' button will appear on the right-hand side.

Find & Replace - Watch Video

 

 Replace single items

To replace text on a single item, hover over an item in the results list.

https://lh7-us.googleusercontent.com/n03acoOB4q5yU52maBp2HsJzQwXxZnJJfT4dpUQrxy8WicIeCJHldhX_tpK5Vgru8T9HYxTy9OkPrc_-uDBN0jGqlc9PT7uyK8-wKSBQz3-BV__gt9NDktlF-qZ7_xdxITcJtCDLFKWRkTr0YAX_CJ4

Click on the Replace button to replace the single item; after a few seconds, you will see the change and Undo or Undo All if needed. The matching text will also switch to a simpler view that shows only the replaced text.

https://lh7-us.googleusercontent.com/ILFXXxeScQWB8MXR_V8PUNiPtLiZXAeOFPH8fRjxVAbxBUpe6R9Z-zi9jR0eCRJmcLlQzJPyXmBQIDyqu-Dn6sz_dFLg4E4lh3ZGn4vspPksFI1FaGNKJHoOtfbd-ZRE5hrxH9B4UxYpnf6zfX7QXyY

Undo

To undo simply press the undo button. Keep in mind that if you leave and come back the undo button will be gone. It only undoes the direct search you just made.

Screenshot 2024-06-21 at 9.50.44 AM

F&R History

F&R has a history that shows the find, the replace and the User ID of the person that has done the search, as well as the timestamp and scope.  Additionally you can download the CSV results of your search.

Screenshot 2024-06-21 at 9.50.17 AM