title: Two word boundaries (\b) to isolate a single word
body: <p>I am trying to match the word that appears immediately after a number - in the sentence below, it is the word &quot;meters&quot;.</p>
  <blockquote>
  <p>The tower is 100 <strong>meters</strong> tall.</p>
  </blockquote>
  <p>Here's the pattern that I tried which didn't work:</p>
  <h2><strong><code>\d+\s*(\b.+\b)</code></strong></h2>
  <p>But this one did:</p>
  <h2><strong><code>\d+\s*(\w+)</code></strong></h2>
  <p>The first incorrect pattern matched this:</p>
  <blockquote>
  <p>The tower is 100 <strong>meters tall</strong>.</p>
  </blockquote>
  <p>I didn't want the word &quot;tall&quot; to be matched. I expected the following behavior:</p>
  <p><strong><code>\d+</code></strong>     <code>match one or more occurrence of a digit</code><br>
  <strong><code>\s*</code></strong>    <code>match any or no spaces</code><br>
  <strong><code>(</code></strong>       <code>start new capturing group</code><br>
  <strong><code>\b</code></strong>      <code>find the word/non-word boundary</code><br>
  <strong><code>.+</code></strong>      <code>match 1 or more of everything except new line</code><br>
  <strong><code>\b</code></strong>      <code>find the next word/non-word boundary</code><br>
  <strong><code>)</code></strong>      <code>stop capturing group</code><br></p>
  <p>The problem is I don't know tiddly-twat about regex, and I am very much a  noob as a noob can be. I am practicing by making my own problems and trying to solve them - this is one of them. Why didn't the match stop at the second break <code>(\b)</code>?</p>
  <hr />
  <p><sub>This is Python flavored<br>
  <a href="https://regex101.com/r/iJ1xE3/1" rel="nofollow noreferrer">Here's the regex101 test link of the above regex.</a></sub></p>