From: LukasP <LP...@po...> - 2010-07-15 13:47:00
|
Hello, is there a built-in string replacing function? a = replace("ABC\\XYZ", "\\", "/") # a -> "ABC/XYZ" It would be very useful especially when migrating between Linux and Win apps as Linux uses "/" as directory separator but Windows use "\". Sometimes I pass an argument to a gnuplot script which represents a file name and it must contain "\\" due to Win command line, but later I'd need to perform the above replacement. Is there a possibility? Thanks. -- View this message in context: http://old.nabble.com/Function-%22replace%22-for-strings--tp29173139p29173139.html Sent from the Gnuplot - Dev mailing list archive at Nabble.com. |