title: How to find a hyperlink text and replace with embedded text?
body: <p>How should I find a hyperlink text and replace with the embedded text for the below examples?</p>
  
  <p>For e.g. 1:</p>
  
  <p><strong>Table of Contents</strong></p>
  
  <pre><code>&lt;p&gt;&lt;a href="ch1"&gt;Introduction&lt;/a&gt;. It refers to the corresponding id "ch1"/p&gt;
  &lt;p&gt;&lt;a href="ch2"&gt;Research&lt;/a&gt;. It refers to the corresponding id "ch2"&lt;/p&gt;
  &lt;p&gt;&lt;a href="ch3"&gt;Results&lt;/a&gt;. It refers to the corresponding id "ch3"&lt;/p&gt;
  &lt;p&gt;&lt;a href="ch4"&gt;Discussion&lt;/a&gt;. It refers to the corresponding id "ch4"&lt;/p&gt;
  &lt;p&gt;&lt;a href="ch5"&gt;Conclusion&lt;/a&gt;. It refers to the corresponding id "ch5"&lt;/p&gt;
  </code></pre>
  
  <p>E.g. 2:</p>
  
  <pre><code>www.google.com
  www.stackoverflow.com
  </code></pre>
  
  <p>E.g. 3:</p>
  
  <p><strong>Citations</strong></p>
  
  <pre><code>*see* &lt;a href="ch1"&gt;Chapter. 1&lt;/a&gt;. It refers to the id "ch1"
  *see* &lt;a href="fig1"&gt;Fig. 1&lt;/a&gt;. It refers to the id "fig1"
  *see* &lt;a href="tab1"&gt;Table. 1&lt;/a&gt;. It refers to the id "tab1"
  </code></pre>
  
  <p>The above mentioned examples are converted to html <code>&lt;a&gt;</code> tag using VBA Macros.</p>
  
  <p>Example 1 should be converted to:</p>
  
  <pre><code>     &lt;a href="ch1"&gt;Introduction&lt;a&gt;
       &lt;a href="ch2"&gt;Research&lt;/a&gt;
       &lt;a href="ch3"&gt;Results&lt;/a&gt;
       &lt;a href="ch4"&gt;Discussion&lt;/a&gt;
       &lt;a href="ch5"&gt;Conclusion&lt;/a&gt;
  </code></pre>
  
  <p>E.g. 2 should be converted to:</p>
  
  <pre><code>   &lt;a href="http://www.google.com"&gt;www.google.com&lt;/a&gt;
     &lt;a href="www.stackoverflow.com"&gt;www.stackoverflow.com&lt;/a&gt;
  </code></pre>
  
  <p>E.g. 2 should be converted to:</p>
  
  <pre><code>   &lt;a href="http://www.google.com"&gt;www.google.com&lt;/a&gt;
     &lt;a href="www.stackoverflow.com"&gt;www.stackoverflow.com&lt;/a&gt;
  </code></pre>