Re: Regular Expression Groups - loop

2007-08-07 Thread shahargs
Thank You, Marc and Peter. now, it's working. Shahar. -- http://mail.python.org/mailman/listinfo/python-list

Re: Regular Expression Groups - loop

2007-08-07 Thread Marc 'BlackJack' Rintsch
On Tue, 07 Aug 2007 00:44:49 -0700, shahargs wrote: > I'm trying to write application which parse one page to sentences and > then, check every group for few things. > > The code: > rawstr = r"""([^.?!]+[.?!])""" > regex=re.compile(rawstr) > matchs=regex.

Re: Regular Expression Groups - loop

2007-08-07 Thread Peter Otten
[EMAIL PROTECTED] wrote: > I'm trying to write application which parse one page to sentences and > then, check every group for few things. > > The code: > rawstr = r"""([^.?!]+[.?!])""" > regex=re.compile(rawstr) > matchs=regex.search(document) > document, is the text i parsing. I cheked it in K