Thursday, June 17, 2010

Convert In Hindi

public string ConvertEtoH(string input)
{
//string input = "0932;093E;0926;0947;0928;";
Regex rx = new Regex(@"([0-9A-Fa-f]{4});");
string output = rx.Replace(input, match => ((char)Int32.Parse(match.Groups[1].Value, NumberStyles.HexNumber)).ToString());
return output;
}

No comments: