Hello, I'm matching a list of strings. I want "xxxBar" to be a match but not "xxxFooBar", xxx can be anything. I've tried the following: re.match('^.*?(?!Foo)Bar$', word) re.match('^.*?(Foo){0}Bar$', word) But they all returns a match. What am I doing wrong?? I think this should be an easy thing to do. Thanks for any help, Thomas