Regular Exp
Ben Finney
bignose-hates-spam at and-benfinney-does-too.id.au
Fri Oct 31 03:45:02 EST 2003
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