In <[EMAIL PROTECTED]>, durumdara wrote: > I found a solution my question in regexp way too: > import re > testtext = " minion battalion nation dion sion wion alion" > m = re.compile("[^t^l]ion") > print m.findall(testtext) > > I search for all text that not lion and tion.
And ^ion. The first ^ in that character group "negates" that group, the second is a literal ^, so I guess you meant "[^tl]ion". Ciao, Marc 'BlackJack' Rintsch -- http://mail.python.org/mailman/listinfo/python-list