How to print this Link with 2 Quotes "https:\\www.youtube.com/c/TarekAlabd" | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to print this Link with 2 Quotes "https:\\www.youtube.com/c/TarekAlabd"

How to output link with 2 Quotes

5th Mar 2021, 10:45 AM
Drk.C7
Drk.C7 - avatar
4 Answers
+ 1
use \ before character to be escaped: "\"https://www.youtube.com/c/TarekAlabd\"" if you need to put raw \ in your string, escape it by put it twice (so to output '\\', you should to put 4: '\\\\', but urls are made with 'https://', not 'https:\\' ;)
5th Mar 2021, 12:08 PM
visph
visph - avatar
+ 2
Please use the language name that is relevant to your question in tags.
5th Mar 2021, 10:46 AM
Abhay
Abhay - avatar
0
I used it!
5th Mar 2021, 10:50 AM
Drk.C7
Drk.C7 - avatar
0
Ok got it thanks for ur help
5th Mar 2021, 12:50 PM
Drk.C7
Drk.C7 - avatar