re problem
Joshua Muskovitz
joshm at taconic.net
Fri Jan 25 15:13:44 EST 2002
> 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)
Just a guess, but don't you either need to double your backslashes or make
the string a raw string?
--
# Joshua Muskovitz
# joshm at taconic.net
def lyyrs(sig): return '-'.join(sig.split()+["ly y'rs"])
lyyrs('Hire me! I need the work!')
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 80,000 Newsgroups - 16 Different Servers! =-----
More information about the Python-list
mailing list