VS.NET2003怎样用正则表达式替换?
查找替换→选上查找正则表达式
查找内容: id=\"(.+)LinkButton\"
替换为  : id="{$1}Link"
编辑文本
<a id="CopyLinkButton" >
<a id="DeleteLinkButton">
全部替换后就成了
<a id="{$1}Link" >
<a id="{$1}Link">替换为 怎样才能替换后的结果是
<a id="CopyLink">
<a id="DeleteLink">

解决方案 »

  1.   

    don't have vs.net at hand, but I believe the regex in find/replace is a little weird, otherwise this guy wouldn't write an add-in for it, seehttp://excastle.com/blog/archive/2005/01/12/614.aspxhttp://www.codeproject.com/csharp/SearcherAddIn.aspalso seehttp://msdn2.microsoft.com/library/2k3te2cs(en-us,vs.80).aspx
      

  2.   

    try
    查找内容: id=\"{.+}LinkButton\"
    替换为  : id="\1Link"