Hi,<br> Say I have <br> p = re.compile('a|b')<br> text = 'a'<br> d = p.findall(text)<br> #d -> ['a']<br> What is the way to find out which pattern p match (the former or latter)? I mean without knowing the outcome of p.findall<br>
Thanks<br clear="all"><br>-- <br>Aonlazio<br>'Peace is always the way.' NW<br>