title: Find all lines using regular expression
body: <p>There is a text like this (many lines)</p>
  
  <pre><code>1. sdfsdf werwe werwemax45 rwrwerwr
  2. 34348878 max max44444445666 sdf
  3. 4353424 23423eedf max55 dfdg dfgdf
  4. max45
  5. 4324234234sdfsdf maxx34534
  </code></pre>
  
  <p>Using regular expressions I need to find all lines and include a word <code>max&lt;digits&gt;</code> (containing digits instead of literally <code>&lt;digits&gt;</code>) into a matching group.</p>
  
  <p>So I've tried this regular expression:</p>
  
  <pre><code>^.*?\b(max\d+)\b.*?$
  </code></pre>
  
  <p>But it finds only lines containing <code>max...</code> and ignores others.</p>
  
  <p>Then I’ve tried</p>
  
  <pre><code>^.*?\b(max\d+)?\b.*?$
  </code></pre>
  
  <p>It finds all lines but without matching group containing <code>max...</code>.</p>