in short :
I want to use the Lookahead technique in Python with the ?P<name> convention (details here) to get the groups by name.
more details :
I discovered the Lookahead trick here; e.g. the following regex...
/^(?=.*Tim)(?=.*stupid).+
... allows to detect strings like "Tim stupid" or "stupid Tim", the order being not important.
I can't figure out how I can combine the ?= "operator" with the ?P one; the following regex obviously doesn't do the trick but gives an idea of what I want :
/^(?=?P<word1>.*Tim)(?=?P<word2>.*stupid).+
 
     
    