title: Get last page number from HTML
body: <p>I have a page pagination that look like this in HTML:</p>
  
  <pre><code>&lt;span class="nav"&gt;Go to &lt;b&gt;1&lt;/b&gt;, &lt;a href="page-2.html"&gt;2&lt;/a&gt;, &lt;a href="page-3.html"&gt;3&lt;/a&gt;, &lt;a href="page-4.html"&gt;4&lt;/a&gt;, &lt;a href="page-5.html"&gt;5&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;a href="page-2.html"&gt;Next&lt;/a&gt;&lt;/span&gt;
  </code></pre>
  
  <p>What I want to get is the last page number (so in this example "5"). How I can do it in Bash? Thank you for help.</p>