Literals/String: Difference between revisions

→‎{{header|REXX}}: removed a blank line, added whitespace in assignments.
m (→‎{{header|REXX}}: one too many removed)
(→‎{{header|REXX}}: removed a blank line, added whitespace in assignments.)
Line 1,340:
</pre>
It's also possible to express characters in hexadecimal notation in a string:
<lang rexx>lf = '0A'x
lf = '0A'x
cr = '0D'x
 
mmm = '01 02 03 34 ee'x
ppp = 'dead beaf 11112222 33334444 55556666 77778888 00009999 c0ffee'X
 
lang = '52455858'x /*which is "REXX" on ASCII-computers.*/</lang>
Binary strings are also possible:
<lang rexx>jjj = '01011011'B
jjj = '01011011'b
jjj = "0101 1011"b
jjj = '0101 1011 1111'b
longjjj = '11110000 10100001 10110010 11100011 11100100'B</lang>
 
=={{header|Ruby}}==