Re: re module help

2005-09-10 Thread Steve Holden
[EMAIL PROTECTED] wrote: > I am trying to make prescript-2.2 (old python based psotscript to plain > text converter). > It gives the following dprecation message > > /local/users/ishwar/prescript-2.2/misc.py:23: DeprecationWarning: the > regex module is deprecated; please use the re module > imp

Re: re module help

2005-09-09 Thread Daniel Dittmar
[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 ('\([a-z][a-z0-9]*\)') becomes re.compile ('(?Pid[a-z][a-z0-9]*)') I get