li>Group 5 - social_points</li>
<li>Group 6 - social_points_max</li>
</ul>
<h2><a name="6.5">6.5 Better patterns</a></h2>
<p>By the way, although <strong>(.*)</strong> is adequate to capture the <strong>1000</strong> in <strong>You have 1000 XP</strong>, there is a better way.</p>
<p>In regular expressions (patterns), <strong>\d</strong> means 'any digit', so <strong>\d+</strong> means 'any sequence of digits (but at least one of them)'. <strong>\d+</strong> will capture the numbers <strong>5</strong>, <str