作者:老鬼 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*>|/>)
功能:
<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*>|/>)