Subject: certificate
From: Batiashvili Zurab <[email-masked]>
To: [email-masked]
Date: Mon, 21 Sep 2015 11:27:00 +0000

var rgx = new Regex("[^a-fA-F0-9]");

var serial = rgx.Replace(serNumber, string.Empty).ToUpper();