I have a file that has the following structure:
Nombre1 = Funcion(New func("")) 'comentarios
Nombre2 = Funcion(New func("")) 'comentarios
Nombre3 = Funcion(New func("")) 'comentarios
I need that where there is double quote or double quotes, put it like that \"\"
To part I need to remove all the comments and that the result file is such that:
Nombre1 = Funcion(Texto Valor(\"\")):Nombre2 = Funcion(New func(\"\")):Nombre3 = Funcion(New func(\"\"))
All of my variables will be on a single line and will eliminate all comments; In addition to line breaks, the result will be as mentioned above. Is it possible to do this using regex in python so you do not have to do it by hand?