how to do exact match for all characters using re.match()

Hans Nowak wurmy at
Tue Aug 6 06:04:40 CEST 2002

Srikanth wrote:
> Hi,
> I'm using the method re.match(<regex>, string) to find a match. But I
> want all characters of <string> to match the regex. I'm getting a
> match if 0 or more characters are a match. Is there a way to make the
> whole string match the regex?

What regex are you using on what string?

Hans (base64.decodestring('d3VybXlAZWFydGhsaW5rLm5ldA=='))
# decode for email address ;-)
The Pythonic Quarter::

More information about the Python-list mailing list