re problem

Ed eddieborder2001 at yahoo.co.uk
Fri Jan 25 13:39:53 EST 2002


hi
i am trying to create an re expression which will match y = mx + c,
with m and c = a number upto 4 digits long. I first came up with

self.linear = re.compile("y = [\d+?]x [+|-] \d+", re.IGNORECASE)

this doesnt work though and i dont understand why.
thanks
ed



More information about the Python-list mailing list