I'm looking for a regex to replace whitespaces INTO an XML tag. For exemple:
<TAG 1>bla bla bla</TAG 1>
replace to:
<TAG1>bla bla bla</TAG1>
I wrote this:
string currentLine = Regex.Replace(currentLine,
@"(?<=\</?\S*)\s+(?=\S*\>)", String.Empty);
but it's not working, because it's remove between 2 tag also...
Thank you for your help!