regex that shouldn't work works
<p>im starting to learn regex and i tried to make a simple regex that doesn't make sense to match but it matched any way
i tried in python</p>

<pre><code>import re


pattern = r'[a-z]+[a-z]'



print re.findall(pattern,"adasdasad");
</code></pre>

<p>it returned ['adasdasad']
where it shouldn't have worked because [a-z]+ should have consumed the whole string and the rest ([a-z]) won't find any thing to conusme why it evaluates ????</p>