John Machin wrote: >> import re >> template = '^My name is alex' > > The ^ is redundant.
Didn't the OP want to match only at the beginning of the string? m. -- http://mail.python.org/mailman/listinfo/python-list
John Machin wrote: >> import re >> template = '^My name is alex' > > The ^ is redundant.
Didn't the OP want to match only at the beginning of the string? m. -- http://mail.python.org/mailman/listinfo/python-list