Change replace character in string and add strings?
I have a software to deploy where the installer for version 5.3.7 has 537 in its name (which is a parameter to the class). Its full name will be something like mysoftware-537-linux-ia32.bin or mysoftware-537-linux-x86_64.bin depending on the architecture.
I have this in my class:
softprefix = "mysoftware-" version = "5\_3\_7" softsuffix = "-linux-x86_64.bin" # or -linux-ia32.bin depending on the OS
How do I replace the "_" with "." in the string 5_3_7 and make the version 5.3.7?
Also how do I concatenate the strings? installer = $softprefix+$version+$softsufix doesn't seem to work.