On Thursday, November 27, 2014 2:28:11 PM UTC+1, Francesco Bonazzi wrote:
>
>
> your_mathematica_expr = '((-2x+5)(4x-1)-4(-x^2+5x+1))/(4x-1)^2'
> new_math_expr = re.sub("([0-9])\ *([a-zA-Z])", "\\1 * \\2", 
> your_mathematica_expr)
> M(new_math_expr)
>
>
Remember *import re* to use the *re* module. 

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/094ec242-37e7-42c4-80c9-497f30e447b5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to