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.
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
[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
[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
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