_r = new Regex("<item (.*?)/>");
foreach (Match m in _r.Matches(_text))
if (m.Value.ToLower().Contains("
thumb-") || m.Value.ToLower().Contains(" pages") || m.Value.ToLower().Contains(" replicamap") || (m.Value.Contains("cover.jpg") && !File.Exists(_inputFolderPath + "\\OUTPUT\\OPS\\images\\cover. jpg")) || (m.Value.Contains("cover. xhtml") && !File.Exists(_inputFolderPath + "\\OUTPUT\\OPS\\images\\cover. jpg")))
_text = _text.Replace(m.Value, string.Empty);
_r = new Regex("<itemref (.*?)/>");
foreach (Match m in _r.Matches(_text))
if ((m.Value.Contains("cover. xhtml") && !File.Exists(_inputFolderPath + "\\OUTPUT\\OPS\\images\\cover. jpg")))
_text = _text.Replace(m.Value, string.Empty);
_text = _text.Replace("<item id=\"css\" href=\"css/TablesAndFloats. css\" media-type=\"text/css\"/>", "<item id=\"css\" href=\"css/styles.css\" media-type=\"text/css\"/>");
if (_creator != "")
{
_r = new Regex("<dc:creator>(.*?)</dc: creator>");
if (_r.IsMatch(_text))
_text = _text.Replace(_r.Match(_text). Value, "<dc:creator>" + _creator + "</dc:creator>");
}
foreach (Match m in _r.Matches(_text))
if (m.Value.ToLower().Contains("
_text = _text.Replace(m.Value, string.Empty);
_r = new Regex("<itemref (.*?)/>");
foreach (Match m in _r.Matches(_text))
if ((m.Value.Contains("cover.
_text = _text.Replace(m.Value, string.Empty);
_text = _text.Replace("<item id=\"css\" href=\"css/TablesAndFloats.
if (_creator != "")
{
_r = new Regex("<dc:creator>(.*?)</dc:
if (_r.IsMatch(_text))
_text = _text.Replace(_r.Match(_text).
}
Comments
Post a Comment