title: How to use SED to find and replace URL strings with the "/" character in the targeted strings?
body: <p>I'm attempting to use SED through OS X Terminal to perform a find and replace.</p>
  
  <p>Imagine I have this string littered throughout the text file: <a href="http://www.find.com/page" rel="noreferrer">http://www.find.com/page</a></p>
  
  <p>And I want to replace it with this string: <a href="http://www.replace.com/page" rel="noreferrer">http://www.replace.com/page</a></p>
  
  <p>I'm having trouble because I'm not sure how to properly escape or use the "/" character in my strings.  For example if I simply wanted to find "cat" and replace with "dog" I've found the following command that works perfectly:</p>
  
  <pre><code>sed -i '' 's/cat/dog/g' file.txt
  </code></pre>
  
  <p>Does anyone have any ideas on how to achieve the same functionality only instead of cat and dog have strings or URLs that container the "/" character?  I tried many different ways of escaping the "/" characters but then it seems as if SED can no longer "find" the string and it doesn't perform any find &amp; replace actions.</p>
  
  <p>Any help or tips are greatly appreciated.</p>
  
  <p>Thanks!</p>