Content is
Hello World.
<a href="#" target=_blank>hello World</a>
How to replace the
in html code and keep the other
in the text.
Content is
Hello World.
<a href="#" target=_blank>hello World</a>
How to replace the
in html code and keep the other
in the text.
Can you try searching for
(?<=<[^>]*)
and replacing it with a single space?
This looks for
inside tags (preceded by a <
and possibly other characters except >
).
This is extremely brittle, though. For example, it will fail if you have <
/>
symbols in strings/attributes. Better avoid getting those
into the wrong locations in the first place.
It's simple
youString.Replace(" ", " ");
String class http://msdn.microsoft.com/en-us/library/system.string.aspx
Replace method http://msdn.microsoft.com/en-us/library/fk49wtc1.aspx
This will find you all those strips of the text containing  :
<[^>]+? [^<]+?>
Fropm here you can just do a simple string replaces with the space since Regex will give you the lcoation ofthe match in your text.