github.com/solo-io/cue@v0.4.7/doc/tutorial/basics/2_types/45_stringraw.txt (about) 1 cue eval stringraw.cue 2 cmp stdout expect-stdout-cue 3 4 -- frontmatter.toml -- 5 title = "\"Raw\" Strings" 6 description = "" 7 8 -- text.md -- 9 CUE does not support raw strings in the strictest sense. 10 Instead it allows modifying the escape delimiter by requiring 11 an arbitrary number of hash `#` signs after the backslash by 12 enclosing a string literal in an equal number of hash signs on either end. 13 14 This works for normal and interpolated strings. 15 Quotes do not have to be escaped in such strings. 16 17 -- stringraw.cue -- 18 msg1: #"The sequence "\U0001F604" renders as \#U0001F604."# 19 20 msg2: ##""" 21 A regular expression can conveniently be written as: 22 23 #"\d{3}"# 24 25 This construct works for bytes, strings and their 26 multi-line variants. 27 """## 28 29 -- expect-stdout-cue -- 30 msg1: "The sequence \"\\U0001F604\" renders as 😄." 31 msg2: """ 32 A regular expression can conveniently be written as: 33 34 #\"\\d{3}\"# 35 36 This construct works for bytes, strings and their 37 multi-line variants. 38 """