TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
mmilligan
NA
3
0
Replace backslash with double backslash using Regex
Jan 9 2004 11:19 PM
I want to replace single back slashes in a string with double back slashes. This is for a database string I pass into an API method call. The following causes a run-time error: public static string setDoubleFSlash(string sPath) { return Regex.Replace(sPath,"\\","\\\\"); } Now I use an extra back slash to escape the actual back slash. HELP!
[email protected]
Reply
Answers (
4
)
Printer Fonts
Working with Multithreaded programming!