[EMAIL PROTECTED] wrote: > if I start replacing regex by re I get stuck at replacement of > regex.symcomp() and regex.pattern()
Groups identified by names are part of the standard regular expression syntax: regex.symcomp ('\(<id>[a-z][a-z0-9]*\)') becomes re.compile ('(?Pid[a-z][a-z0-9]*)') I get AttributeError for both regex.pattern and regex.compile ('abc').pattern. re compiled regular expression have a pattern attribute, this was named givenpat and realpat in the regex module. Daniel -- http://mail.python.org/mailman/listinfo/python-list