string input = "1/8";Regex reg = new Regex(@"\\<]*\>([^\<\>]*)\<\/span\>");string result = reg.Replace(img, delegate(Match m) { return m.Groups[1].Value; });