- 2

Backslash \\

i/p : "hai\every1" o/p: 'hai\\every1' how \ became \\

20th Sep 2016, 6:26 PM
Navaneethan.R
Navaneethan.R - avatar
3 Answers
+ 3
I think you mean input and output but there's no code. Check out how 'escaping' works, then look at how the commands you're using handle 'escape sequences'. This is an important thing to grasp for python, regular expressions and other languages. If you're still lost, show your code so followup answers can be specific and relevant to you (or post the answer with your code so people can see and learn).
21st Sep 2016, 4:31 PM
Kirk Schafer
Kirk Schafer - avatar
0
i am the beginner. in shell i typed, >>> "hai \every1" >>> 'hai \\every1' how?
21st Sep 2016, 5:17 PM
Navaneethan.R
Navaneethan.R - avatar
0
2nd backslash is bypassed for the first one..@navaneethan
23rd Sep 2016, 2:50 AM
Sojib Bagchi
Sojib Bagchi - avatar