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

Hans Nowak wurmy at earthlink.net
Tue Aug 6 00:04:40 EDT 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:: http://www.awaretek.com/nowak/




More information about the Python-list mailing list