Answer the question
In order to leave comments, you need to log in
What is the regular expression for replacing text in places?
I want to automate my work on cleaning SVG, but I still couldn't figure out how to do it.
To do this:
<path d="M0 0h83.5v20H0z" fill="#fff"/>
It turned out like this:
<path fill="#fff" d="M0 0h83.5v20H0z"/>
In fact , d and fill need to be swapped.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question