Re: [julia-users] Adding backslashes to a string fails

2015-11-13 Thread Lionel du Peloux
Hello Stephan. I’ve deleted this message and open an issue on the DataFrames package. I’ve mistaken and write() behave properly (I think). But I think there’s still a problem with the writetable() for single backslashes. You can find a detailed explanation here : https://github.com/JuliaStats/Da

Re: [julia-users] Adding backslashes to a string fails

2015-09-08 Thread amiksvi
Oh God, you're right, I don't know if I'm more ashamed or mad to have lost so much time on that, thank you very much anyway! Le mardi 8 septembre 2015 16:11:44 UTC+2, Joshua Ballanco a écrit : > > I think you’re just seeing the REPL printing the String object, which > represents backslashes as e

Re: [julia-users] Adding backslashes to a string fails

2015-09-08 Thread Joshua Ballanco
I think you’re just seeing the REPL printing the String object, which represents backslashes as escaped. Printing the result should clarify things: julia> replace("my_beautiful_string", "_", "\\_") "my\\_beautiful\\_string" julia> println(replace("my_beautiful_string", "_", "\\_")) my\_beautiful

[julia-users] Adding backslashes to a string fails

2015-09-08 Thread amiksvi
Hi all, I'm trying to do a simple thing, adding a backslash before every underscore in a string, ex: my_beautiful_string should become my\_beautiful\_string. To do that, I tried: julia> replace("my_beautiful_string", "_", "\_") "my_beautiful_string" julia> replace("my_beautiful_string", "_", "\