<!---$S1PICTURE--->
<!---$S2PICTURE--->
<!---$S3PICTURE--->
....
<!---$SnPICTURE--->求匹配上面的正则表达式
<!---$S2PICTURE--->
<!---$S3PICTURE--->
....
<!---$SnPICTURE--->求匹配上面的正则表达式
解决方案 »
- 使用ADO.NET Entity Framework 会被注入吗
- VS2010点击设计的时候服务器控件无法正常显示。
- app.config里设置的节点能加参数吗
- .net Framework3.5SP1简体中文版是否需要安装.net Framework2.0?
- 用户控件的赋值以及动态添加此用户控件的问题
- 关于页面refresh的问题
- 请问如何判断浏览器是否开启了javascript?
- 如何成批插入数组到sql数据库中?(VB.NET)
- 请问如何在webform1的事件里用空白页打开webform2
- 求大神,在线等,asp 图片轮播调数据库问题
- aspx文件发布出错,请麻烦帮忙看看,谢谢
- 即时文本窗内容检索问题
void MatchRegex()
{
// Regex match
RegexOptions options = RegexOptions.IgnoreCase | RegexOptions.Singleline;
Regex regex = new Regex(@"<!\-\-\-\$S\d+PICTURE\-\-\->", options);
string input = @"<!---$S3PICTURE--->"; // Check for match
bool isMatch = regex.IsMatch(input);
if( isMatch )
{
// TODO: Do something with result
System.Windows.Forms.MessageBox.Show(input, "IsMatch");
}}