+ 1

Code to find a string containing a double quote

28th Jun 2020, 6:31 PM
Naila
5 Réponses
+ 4
Naila, do you just want to know if there are double quotes in the string, or do you want to get the number of double quotes, or do you need to get an index list with the positions of all double quotes in the string?
28th Jun 2020, 6:56 PM
Lothar
Lothar - avatar
28th Jun 2020, 7:25 PM
arieh
0
Or simply escape it... print("Hello \"you\"")
28th Jun 2020, 11:28 PM
Sandra Meyer
Sandra Meyer - avatar