【发布时间】:2011-03-03 22:28:15
【问题描述】:
有人有这个正则表达式吗?
public static class HtmlAttributeValidator{
const bool REGEX_OPTIONS = RegexOptions.WhatGoesHere;
const string VALID_ATTRIBUTE_REGEX = @"What goes here?";
public static bool IsValidHtmlAttributeValue(string attributeValue){
return Regex.Match(attributeValue ?? string.Empty,
VALID_ATTRIBUTE_REGEX,
REGEX_OPTIONS);
}
}
【问题讨论】:
标签: c# regex html-parsing w3c-validation