illegal escape character

S

Steve Rainbird

Any ideas why I get the following syntax error?

illegal escape character
wsV1 = "\x1c";
 
H

Hendrik Maryns

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Steve Rainbird schreef:
Any ideas why I get the following syntax error?

illegal escape character
wsV1 = "\x1c";

"\\x1c", see http://mindprod.com/jgloss/regex.html#QUOTING

HTH, H.

- --
Hendrik Maryns

==================
http://aouw.org
Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFEhwhDe+7xMGD3itQRAnbNAJ9Yz8GkjNgeFmA2XD4+UbY1ia88ZQCeJ45A
STYGDuE4yWD/CjIIv0p6dzY=
=2te7
-----END PGP SIGNATURE-----
 
S

Steve Rainbird

Hendrik Maryns said:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Steve Rainbird schreef:

"\\x1c", see http://mindprod.com/jgloss/regex.html#QUOTING

HTH, H.

- --
Hendrik Maryns

==================
http://aouw.org
Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFEhwhDe+7xMGD3itQRAnbNAJ9Yz8GkjNgeFmA2XD4+UbY1ia88ZQCeJ45A
STYGDuE4yWD/CjIIv0p6dzY=
=2te7
-----END PGP SIGNATURE-----


Hendrik,

thanks for helping but what I actually meant by this is the "hex 1c" like in
c.

I know I can have

wsV1 = "\u001c";

But my manual says I can use "\x" as well.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,023
Latest member
websitedesig25

Latest Threads

Top