Title: ADDITIONAL USAGE NOTES 2
Last modified: October 5, 2018

---

# ADDITIONAL USAGE NOTES 2

 *  [iantresman](https://wordpress.org/support/users/iantresman/)
 * (@iantresman)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/additional-usage-notes-2/)
 * Just to add to aeric325’s [useful notes](https://wordpress.org/support/topic/additional-usage-notes/):
    1. If the Regex[ ] box is unchecked, then the “Search pattern” is a simple literal
       string, where you specify the text you want to match, and “Replace pattern” 
       is the replacement string.
 *  1. Click the Search button to check that your Search pattern is working.
    2. Click the Replace button to PREVIEW that your Search and Replace patterns are
       working. It does NOT make any permanent changes.
    3. Click the Search & Save button to perform a search and replace, that will irreversibly
       update your posts, etc.
 *  - Check the Regex[ ] box to specify “[regex](https://medium.com/factory-mind/regex-tutorial-a-simple-cheatsheet-by-examples-649dc1c3f285)”
      style wild-card searches. For example, let’s suppose we want to modify a link
      URL:
 *  - From: `<a href="http://www.mydomain.info/index.php\?title=Some_text">`
    - To: `<a href="/Some_text/" class="internal">`
    - Where “Some_text” varies from link to link
    - Then:
 *  - Search pattern: `@<a href="http://www.mydomain.info/index.php\?title=(.*?)"
      >@`
    - Replace pattern: `<a href="/$1/" class="internal">`
 * Note that:
    - The Search pattern is surrounded by @ symbols which act as delimiters, and
      are required
    - In the search string, the following characters have special meaning: ^.[$()
      |*+? and must be preceded by a \ if they are to be used literally, such as
      where you see \?
    - In the search string, (.*?) is he the wild-card indicator.
    - In the replace pattern, the $1 represents the text found by the wildcard
 *  -  This topic was modified 7 years, 7 months ago by [iantresman](https://wordpress.org/support/users/iantresman/).
    -  This topic was modified 7 years, 7 months ago by [iantresman](https://wordpress.org/support/users/iantresman/).
    -  This topic was modified 7 years, 7 months ago by [iantresman](https://wordpress.org/support/users/iantresman/).
    -  This topic was modified 7 years, 7 months ago by [iantresman](https://wordpress.org/support/users/iantresman/).
    -  This topic was modified 7 years, 7 months ago by [iantresman](https://wordpress.org/support/users/iantresman/).
    -  This topic was modified 7 years, 7 months ago by [iantresman](https://wordpress.org/support/users/iantresman/).
    -  This topic was modified 7 years, 7 months ago by [iantresman](https://wordpress.org/support/users/iantresman/).
    -  This topic was modified 7 years, 7 months ago by [iantresman](https://wordpress.org/support/users/iantresman/).
    -  This topic was modified 7 years, 7 months ago by [iantresman](https://wordpress.org/support/users/iantresman/).

Viewing 1 replies (of 1 total)

 *  [roam92](https://wordpress.org/support/users/roam92/)
 * (@roam92)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/additional-usage-notes-2/#post-11034499)
 * Thanks, and note that if your site is getting an:
 * `Uncaught Error: Call to undefined method SearchRegex::base_url()`
 * …then the quick fix to the plugin code is given here:
 * [https://wordpress.org/support/topic/call-to-undefined-method-searchregexbase_url/#post-10084094](https://wordpress.org/support/topic/call-to-undefined-method-searchregexbase_url/#post-10084094)

Viewing 1 replies (of 1 total)

The topic ‘ADDITIONAL USAGE NOTES 2’ is closed to new replies.

 * ![](https://ps.w.org/search-regex/assets/icon-256x256.jpg?rev=1030025)
 * [Search Regex](https://wordpress.org/plugins/search-regex/)
 * [Support Threads](https://wordpress.org/support/plugin/search-regex/)
 * [Active Topics](https://wordpress.org/support/plugin/search-regex/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/search-regex/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/search-regex/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [roam92](https://wordpress.org/support/users/roam92/)
 * Last activity: [7 years, 5 months ago](https://wordpress.org/support/topic/additional-usage-notes-2/#post-11034499)
 * Status: not resolved