but in general is there a way to include in a re, in this example something like...matches iff p , and q in which p==q[::-1] ? A way to putting a small part of code of python in re? Thanx for your many helps