Is there a regex that converts uneven spacing into even spacing in strings (for polynomials)?
Like "x^2 + x -3 +2x^-4" into "x^2 + x - 3 + 2x^-4" (where there is single space between each of the terms).
"x^2 + x -3 +2x^-4"
"x^2 + x - 3 + 2x^-4"
没有评论:
发表评论