Strange regex problem
A.M. Kuchling
amk at amk.ca
Sun Mar 2 09:45:22 EST 2003
On Sun, 02 Mar 2003 12:43:19 +0000,
Dagur Páll Ammendrup <dagurp at heimsnet.is> wrote:
> n = re.search('<!--END:%s-->' % match,file,begin)
re.search()'s arguments are (pattern, string, flags). With re.search(),
there's no way to specify a starting point within the string, so you're
going to have to use a precompiled regex.
--amk (www.amk.ca)
HAMLET: I prithee, take thy fingers from my throat.
-- _Hamlet_, V, i
More information about the Python-list
mailing list