MRAB wrote:<br>> findall returns a list of tuples (what the groups captured) if there is more than 1 group,<br>> or a list of strings (what the group captured) if there is 1 group, or a list of<br>> strings (what the regex matched) if there are no groups.<br>
<br>Thanks.<br>It would be good to put this in the manual dont you think?<br><br>Also, the manual says in the 'match' section <br><br>"Note If you want to locate a match anywhere in <em>string</em>, use <tt class="xref docutils literal"><span class="pre">search()</span></tt>
instead."<br><br>to guard against users using match when they should be using search.<br><br>Likewise it would be helpful if the manual also said (in the match,search sections)<br>"If more than one match/search is required use findall"<br>
<br><div class="admonition note">
</div>