Regular Exp

afds adf at hotmail.com
Fri Oct 31 11:03:26 EST 2003


Damn didn't see Harvey's message, ignore.

> Ah, so you're saying my Regular Expression is correct?  It just matches
for
> two digits?
>
> "Ben Finney" <bignose-hates-spam at and-benfinney-does-too.id.au> wrote in
> message news:slrnbq49du.107.bignose-hates-spam at rose.localdomain.fake...
> > On 31 Oct 2003 19:29:14 +1050, Ben Finney wrote:
> > > You need to define one or more groups within the expression, grouping
> > > what you want to access.  Then use 'MatchObject.group()' to access one
> >
> > Or, as Harvey pointed out, use 'MatchObject.group(0)' to access the
> > entire matching portion of the string, without needing to explicitly
> > define groups.
> >
> > -- 
> >  \          "Any sufficiently advanced bug is indistinguishable from a |
> >   `\                                       feature."  -- Rich Kulawiec |
> > _o__)                                                                  |
> > Ben Finney <http://bignose.squidly.org/>
>
>






More information about the Python-list mailing list