I got the following expression that might look like this (the sum of Sqrt [XXX] is unknown)
Sqrt[A+B] + Sqrt[Min[A,B]] * Min[Sqrt[C],D]
and I want to turn all Sqrt[XXX] into Sqrt(XXX) , I want to replace the brackets [] in Sqrt with () brackets
so the above example will look like
Sqrt(A+B) + Sqrt(Min[A,B]) * Min[Sqrt(C),D]
I donโt want to โharmโ the other brackets [] in the expression (for example, next to Min )
How to do this with regex?
source share