re problem
Pekka Niiranen
krissepu at vip.fi
Fri Jan 25 14:37:11 EST 2002
Hi,
square brakets [ and ] mark a charater class. Try using normal
brakets ( and ) instead.
-pekka-
Ed wrote:
> 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