If I have :
Actually, you don't need a regex for that. According to Wikipedia, the data URI format is
data:[][;charset=][;base64],
so just do the following:
byte[] imagedata = Convert.FromBase64String(imageSrc.Substring(imageSrc.IndexOf(",") + 1));