Click here to Skip to main content
15,867,686 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to simulate map c++ collection in c# Pin
Heath Stewart11-Jan-04 12:22
protectorHeath Stewart11-Jan-04 12:22 
Questionstartup parameters? Pin
Leon Radley11-Jan-04 10:35
Leon Radley11-Jan-04 10:35 
AnswerRe: startup parameters? Pin
Colin Angus Mackay11-Jan-04 10:57
Colin Angus Mackay11-Jan-04 10:57 
AnswerRe: startup parameters? Pin
Heath Stewart11-Jan-04 11:32
protectorHeath Stewart11-Jan-04 11:32 
GeneralRe: startup parameters? Pin
Nick Parker11-Jan-04 11:38
protectorNick Parker11-Jan-04 11:38 
GeneralRe: startup parameters? Pin
Heath Stewart11-Jan-04 11:42
protectorHeath Stewart11-Jan-04 11:42 
QuestionRegEx Guru? Pin
Rocky Moore11-Jan-04 10:13
Rocky Moore11-Jan-04 10:13 
AnswerRe: RegEx Guru? Pin
Heath Stewart11-Jan-04 11:35
protectorHeath Stewart11-Jan-04 11:35 
This is possible using regex with a multi-line expression, but if you're working with HTML you probably shouldn't do this. What if an element spans multiple lines and you replace the new line with <BR>? You cause HTML errors that browsers will choke on. Putting breaks after inline images would also be bad, since it would screw up the flow of the image with the paragraph that surrounds it. There are several other cases where this would be bad, too.

To better help you solve this problem, let me ask why you want to do this? If you're generating the HTML files, it would be better to do this in the first place, or if you want to modify the files you should use a good HTML reader (unfortunately there isn't a specific reader in the base class library for HTML, though there is the HtmlTextWriter).

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
AnswerRe: RegEx Guru? Pin
Rocky Moore11-Jan-04 16:47
Rocky Moore11-Jan-04 16:47 
GeneralCoding search and replace on content of file Pin
cgcrute11-Jan-04 5:59
cgcrute11-Jan-04 5:59 
GeneralRe: Coding search and replace on content of file Pin
Mazdak11-Jan-04 6:12
Mazdak11-Jan-04 6:12 
GeneralRe: Coding search and replace on content of file Pin
cgcrute11-Jan-04 8:50
cgcrute11-Jan-04 8:50 
GeneralRe: Coding search and replace on content of file Pin
Mazdak11-Jan-04 9:11
Mazdak11-Jan-04 9:11 
GeneralRe: Coding search and replace on content of file Pin
cgcrute11-Jan-04 9:24
cgcrute11-Jan-04 9:24 
GeneralRe: Coding search and replace on content of file Pin
Meysam Mahfouzi11-Jan-04 18:38
Meysam Mahfouzi11-Jan-04 18:38 
GeneralRe: Coding search and replace on content of file Pin
Mazdak11-Jan-04 20:01
Mazdak11-Jan-04 20:01 
GeneralRe: Coding search and replace on content of file Pin
Jonathan de Halleux12-Jan-04 0:06
Jonathan de Halleux12-Jan-04 0:06 
GeneralRe: Coding search and replace on content of file Pin
cgcrute12-Jan-04 0:17
cgcrute12-Jan-04 0:17 
GeneralRe: Coding search and replace on content of file Pin
Jonathan de Halleux12-Jan-04 1:44
Jonathan de Halleux12-Jan-04 1:44 
GeneralRe: Coding search and replace on content of file Pin
cgcrute12-Jan-04 2:13
cgcrute12-Jan-04 2:13 
QuestionHow to simulate map c++ collection in c# Pin
Rostrox11-Jan-04 5:15
Rostrox11-Jan-04 5:15 
AnswerRe: How to simulate map c++ collection in c# Pin
Kentamanos11-Jan-04 10:29
Kentamanos11-Jan-04 10:29 
AnswerRe: How to simulate map c++ collection in c# Pin
Heath Stewart11-Jan-04 10:30
protectorHeath Stewart11-Jan-04 10:30 
GeneralWindows Messages Pin
Stefan Troschuetz11-Jan-04 3:30
Stefan Troschuetz11-Jan-04 3:30 
GeneralRe: Windows Messages Pin
Niels Penneman11-Jan-04 3:34
Niels Penneman11-Jan-04 3:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.