Is there an alternative syntax for strings in Swift? I need to copy / paste blocks of text, including many quotes, and exit from them every time, this is a pain.
I am looking for something like PHP heredoc syntax or triple-quoted Python strings. Similar to this question , but I don't need newlines, I just need to ignore quotes and backslashes.
Here is a concrete example of the disaster I'm facing right now:
let pattern = "(?:\["(this|is|a|pain|to|escape|properly)+)",0(?:,\[10\])?\])" // that makes me sad let json = "window.google.ac.h(["this",[["is",0],["even",0],["worse",0]],{"q":"...","k":1}])" // that makes me cry
Thanks.
user2629998
source share