Re: [BangPypers] re module help

2012-01-09 Thread Noufal Ibrahim
Ganesh Kumar writes: > Hi Guys, > > I have created regular expression with os modules, I have created file > sdptool to match the regular expression pattern, will print the result. > I want without creating file how to get required output, I tried but i > didn't get output correctly, over stream.

re module help

2012-01-09 Thread Ganesh Kumar
Hi Guys, I have created regular expression with os modules, I have created file sdptool to match the regular expression pattern, will print the result. I want without creating file how to get required output, I tried but i didn't get output correctly, over stream. #! /usr/bin/python import os,re

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

re module help

2005-09-09 Thread rattan
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 import os, regex, sys, string if I start