RegEx
x
jar at mminternet.com
Tue May 14 11:11:57 EDT 2002
I have a quick regular expression question.
I'm trying to substute all parathesis -- both left and right -- with a
space. I've tried:
no_parans = re.compile('(|)', count = 99)
scan_line = no_parans.sub(' ', scan_line)
This doesn't work. It had the effect of inserting a space before every
character, including the paranthesis.
What is the solution?
--
-----------------------
James A Roush
jar @ mminternet.com
-----------------------
More information about the Python-list
mailing list