title: Replacing pattern inside html parameter
body: <p>I want to replace this</p>
  
  <pre><code>href="//noname.com/basil/armada/joke.pdf" href="//noname.com/family/hello.pdf" 
  </code></pre>
  
  <p>with</p>
  
  <pre><code>href="//noname.com/arid/joke.pdf" href="//noname.com/arid/hello.pdf" 
  </code></pre>
  
  <p>-This is just a pseudo-code for a huge file I'm working with so I can't do it by hand. <br>
  -And everything is in 1 line, so I believe all I can use is the substitute command<br>
  -Is this even possible with sed?<br></p>
  
  <p>I've tried</p>
  
  <pre><code>sed '/href/s#//noname.com.*(armada|family)?#//noname.com/arid#g' &lt; list.html &gt; list2.html
  </code></pre>
  
  <p>but nothing gets replaced.... ?</p>
  
  <p>I'm using GNU sed version 4.7</p>