From: Martin H. <Mar...@gm...> - 2006-04-21 18:47:11
|
James, Eero, now that the date handlers pass all tests and we are close to a new release I would suggest to leave that as is for now (it is working) before starting to create complicated regex. Well, those new regex is not complicated for developers but maybe too complicates for new translators. Simply translating a list is much more easy. Just my 2 cent. Cheers, Martin. > Von: "James A. Treacy" <tr...@de...> > On Thu, Apr 20, 2006 at 11:32:13PM +0300, Eero Tamminen wrote: > If there is concern with changing the group numbering, named > groups can be used. E.g. > >>> self.bce_re = > re.compile("(?P<pre>.*)\s+(?P<bce>B[.]C[.](E[.])?)(?P<post> ?.*)") > >>> m = self.bce_re.search('before B.C.E. after') > >>> m.group('bce') > 'B.C.E.' > >>> m.group('pre') > 'before' -- GMX Produkte empfehlen und ganz einfach Geld verdienen! Satte Provisionen für GMX Partner: http://www.gmx.net/de/go/partner |