I'm having some problems to find a way to transform a string, that represents a geometry Linestring. The coordinates are displayed in (Lon,Lat) and I want to transform in (Lat,Lon).. 
Example:

`LINESTRING (0 1, 3 2 , 4 5)`

to

`LINESTRING (1 0, 2 3 , 5 4 )`

Is it possible to do with a Regular Expression?
Thanks