using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text.RegularExpressions;
public class Test
{
public static void Main()
{
string mainstring = "<para> This is a test paragraph </para>";
string regex1 = @"(<\w+[^<>/]*>)\s+|\s+(</\w+>)";
mainstring = Regex.Replace(mainstring, regex1, "$1$2");
Console.WriteLine(mainstring);
}
}
dXNpbmcgU3lzdGVtOwp1c2luZyBTeXN0ZW0uQ29sbGVjdGlvbnMuR2VuZXJpYzsKdXNpbmcgU3lzdGVtLklPOwp1c2luZyBTeXN0ZW0uTGlucTsKdXNpbmcgU3lzdGVtLlRleHQuUmVndWxhckV4cHJlc3Npb25zOwoKcHVibGljIGNsYXNzIFRlc3QKewoJcHVibGljIHN0YXRpYyB2b2lkIE1haW4oKQoJewoJCXN0cmluZyBtYWluc3RyaW5nID0gIjxwYXJhPiBUaGlzIGlzIGEgdGVzdCBwYXJhZ3JhcGggPC9wYXJhPiI7CgkJc3RyaW5nIHJlZ2V4MSA9IEAiKDxcdytbXjw+L10qPilccyt8XHMrKDwvXHcrPikiOwoJCW1haW5zdHJpbmcgPSBSZWdleC5SZXBsYWNlKG1haW5zdHJpbmcsIHJlZ2V4MSwgIiQxJDIiKTsKICAgICAgICAJQ29uc29sZS5Xcml0ZUxpbmUobWFpbnN0cmluZyk7Cgl9Cn0=