Programming, Life and Miscellaneous
Here is a tip how you can convert a multiline text to single line(ie., how to remove newline characters) using regular expression.Select "Use Regular Expression" in the find-n-replace dialog box. Enter "\n" in the "Find What:" field. Don't provide anything in the "Replace With:" and click the Replace or Replace All button. And voila.. All your contents are in a single lines now.Here are more resources I found on the net on Find-n-Replace using regular expression:http://www.aaronlerch.com/blog/2007/03/28/visual-studio-find-and-replace-regular-expressions/http://msmvps.com/blogs/paulomorgado/pages/visual-studio-find-and-replace-regular-expression-patterns.aspxhttp://www.codinghorror.com/blog/archives/000633.htmlhttp://weblogs.asp.net/joelvarty/archive/2008/03/25/find-replace-in-visual-studio-with-regular-expressions-and-variables.aspxhttp://developers.de/blogs/scott_munro/archive/2006/07/14/_2700_Find-and-Replace_2700_-with-regular-expressions-in-Visual-Studio.aspxhttp://blogs.msdn.com/vseditor/archive/2004/06/18/159515.aspxhttp://msdn.microsoft.com/en-us/library/2k3te2cs%28VS.80%29.aspx
Tags: .net, vs2008
Get notified when a new post is published.
- 2017 Ashish Sheth. Powered by BlogEngine.NET 126.96.36.199
- Theme created by Tommaso Baldovino, adapted by onesoft