|
-
September 12th, 2010, 02:19 AM
#1
Question | Remove text from string
I got a string includes text from a .txt file (string s = File.ReadAllText(TextFilePath));
From this string I want to remove all the text that is between the chars "--" and "\r\n".
For example:
Original: "aaaa \r\n -- abcde \r\n aaaa"
New: "aaaa \r\n aaaa"
How can I do it?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|