---
title: "Writing “\\\\” inside a string"  
description: "Writing “\\\\” inside a string"  
author: "Anonymous User"  
published: 2013-07-08  
updated: 2013-07-08  
canonical: https://www.mindstick.com/forum/1258/writing-inside-a-string  
category: "c#"  
tags: ["c#"]  
reading_time: 1 minute  

---

# Writing “\\” inside a string

Hi [Developers](https://www.mindstick.com/articles/12875/blunders-you-must-avoid-while-hiring-java-developers-to-get-the-best-fulfilling-your-needs)!\
I want to do something like:\
[string](https://www.mindstick.com/articles/1527/string-split-in-c-sharp) s = "\\blabla";\
when you write "\" it means there will only be a single '\'. How do I write the string so there will actually be 2 '\' meaning "\" ?\

## Replies

### Reply by AVADHESH PATEL

Hi Babe!\
This works without a problem:\
**string s = "//blabla";**If you mean the backslash instead, you can use a verbatim string literal (using the @ symbol to avoid processing escape symbols):\
**string s = @"\\blabla";**Alternatively you can escape the escape character itself:\
**string s = "\\\\blabla";**


---

Original Source: https://www.mindstick.com/forum/1258/writing-inside-a-string

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
