Code in VC++.NET
I have a string that has html tags. I want to replace <BR> with \n, but not sure if <BR> will be uppercase, lowercase, or a mixture of both. The string replace function allows only one parameter for the replaced value. Is there a better way of doing this than checking 4 times? I will display the string in a button. Thanks.
Example:
string = one<BR>two<br>three
str =string->Replace ("<BR>", S"\n");
str =string->Replace ("<br>", S"\n");
str =string->Replace ("<Br>", S"\n");
str =string->Replace ("<bR>", S"\n");
or
str =string->ToUpper()->Replace ("<BR>", S"\n");
but I do not want to make the string all upper or lower case.