Question about a regular expression

Yoav I H Parish parish at ikb.mavt.ethz.ch
Tue Dec 21 06:43:35 EST 1999


Hello,

i have a string which could look something like

    a(x,y)b(x)
    or
    c(x,y,z)b(x)a(x,y)

I would like to extract the parameters within the parantheses.
The values ought to be separated. What kind of regular expression
for re.split could I use? I have tried several, but can't seem to get it
right...


thanx for any help
y.parish





More information about the Python-list mailing list