老鬼

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
作者:老鬼 mxg_gf@163.com
功能:
<UC:Type [Name="Value"] /> 或 <UC:Type [Name="Value"] > </UC:Type>
例如:
<UC:Foot />
<UC:Foot ></UC:Foot>
<UC:Foot Param1="Value1" Param2="Value2" />
<UC:Foot Param1='Value1' Param2='Value2' />
<UC:Foot Param1=Value1 Param2=Value2 />
等等


正则表达式:
<UC:(?<Type>\w+)\s*(?<Param>(?<Name>\w+)\s*=\s*['""]?(?<Value>[^\s""']+)['""]?\s*)*\s*(>\s*<\/UC:\k<Type>\s*>|/>)



posted on 2006-02-08 11:34  老鬼  阅读(646)  评论(1编辑  收藏  举报