By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,566 Members | 1,774 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,566 IT Pros & Developers. It's quick & easy.

Excape sequence question

P: n/a


Hello,
I am trying to use escape sequence for slash in char this way :

'/\' but it is not woring. How can I represent slash in char?

Thank you!

*** Sent via Developersdex http://www.developersdex.com ***
Jul 7 '08 #1
Share this Question
Share on Google+
2 Replies


P: n/a
'\\'
Jul 7 '08 #2

P: n/a
csharpula csharp wrote:
>
Hello,
I am trying to use escape sequence for slash in char this way :

'/\' but it is not woring. How can I represent slash in char?

Thank you!

*** Sent via Developersdex http://www.developersdex.com ***
A slash doesn't have to be escaped at all:

'/'

If you mean that you want a backslash, you escape it with a backslash:

'\\'

--
Göran Andersson
_____
http://www.guffa.com
Jul 7 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.