当前位置:编程学习 > C#/ASP.NET >>

用正则匹配替换模板的问题.

--------------------编程问答-------------------- {#(.*?)#} --------------------编程问答-------------------- 用非贪婪模式来匹配

{#(.*?)#} --------------------编程问答--------------------
正则对我来说,一头雾水! --------------------编程问答-------------------- string str = @"{#([^#]*)#}";
                
                MatchCollection maths = Regex.Matches(mobandata, str);  
                foreach(Match match in maths)
{
....
}
--------------------编程问答-------------------- 好的.谢谢..忘了这个.
补充:.NET技术 ,  ASP.NET
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,