Equations with Regular Expressions

Alves, Carlos Alberto - Coelce calves at coelce.com.br
Wed Feb 27 05:33:14 EST 2002


Hi everybody,
Could someone of you give me and example of how can I translate
'2x^3-2x^2+15' into '2*(x**3)-2*(x**2)+15' using regular expressions.

Carlos Alberto
COELCE/DPRON-Departamento de Projetos e Obras Norte
Fone: 677- 2228
e-mail: calves at coelce.com.br
\|||/
(o o)
--ooo0-(_)-0ooo--

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20020227/c278a948/attachment.html>


More information about the Python-list mailing list