Hello,

The re module includes the option to comment a regular expression with
the syntax (?#comment).  e.g.

p=r'(.*) (?P<grp>WT.dl)(?#parameter)=(?P<val>[^&]+)(?#value).*'

Is there a mechanism for extracting these values from the match, in
the way that group names are extracted?

I don't see one.

The point would be that in my processing of the match, I could
implement the comments as identifiers for the matched value.

Thanks.

mp

-- 
Michael Powe            mich...@trollope.org            Naugatuck CT USA
"The most likely way for the world to be destroyed, most experts
agree, is by accident.  That's where we come in. We're computer
professionals. We cause accidents."  -- Nathaniel Borenstein, inventor
of MIME

Attachment: pgpPf9G6Q0dBX.pgp
Description: PGP signature

_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to