【发布时间】:2012-05-30 12:40:44
【问题描述】:
我在这样的代码隐藏中有一部分 XAML 字符串
string str = "<Button Name = \"btn1\" Foo = \"Bar"\ /><TextBox Name=\"txtbox1\">"
应该是什么正则表达式来查找仅 Name 属性的值。
我想要
btn1
txtbox1
怎么做?
【问题讨论】:
-
为什么不使用 xml/html 解析器?
-
我确定这是一个副本的副本。这是一个:stackoverflow.com/questions/317053/…