TechnoTone Posted October 13, 2004 Posted October 13, 2004 I want to allow \r, \n, etc, to be entered into a textbox (windows form) but then when I query the textbox it interprets them as @"\r" and @"\n" and not the scape characters "\r" and @"\n", etc. How can get these escape characters without them being converted to literal strings? Quote TT (*_*) There are 10 types of people in this world; those that understand binary and those that don't.
HJB417 Posted October 14, 2004 Posted October 14, 2004 You'll probably need to use Regex.Replace (?<!\\)(?:\\.)*(\\r) will find \r but it will ignore \\r \\\\r (?<!\\)(?:\\.)*(\\n) ... (?<!\\)(?:\\.)*(\\t) ... Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.