re.match question
Thomas Svensson
thomas.svensson at era.ericsson.se
Thu Oct 5 11:34:20 EDT 2000
More information about the Python-list mailing list
Thu Oct 5 11:34:20 EDT 2000
- Previous message (by thread): re.match question
- Next message (by thread): re.match question
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message (by thread): re.match question
- Next message (by thread): re.match question
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list