<a id= 'my ' href= "index " title= "click "> Click </a>
<a id= 'my ' href= 'index ' title= "click "> Click </a>
<a id= 'my ' href=index title= "click "> Click </a>
带空格的地址
<a id= 'my ' href= "index 2 " title= "click "> Click </a>
------解决方案--------------------------------------------------------
于娜小姐好高的分
------解决方案--------------------------------------------------------
样本
<a id= 'my ' href= "index " title= "click "> Click </a>
<a id= 'my ' href= 'index ' title= "click "> Click </a>
<a id= 'my ' href=index title= "click "> Click </a>
<a id= 'my ' href= "index 2 " title= "click "> Click </a>
正则
href=(([ "| ']{1})[\w\. ]+(\2)|([\w\.]+))
结果
href= "index " is match
Group[0]=href= "index "
Group[1]= "index "
Group[2]= "
Group[3]= "
Group[4]=
href= 'index ' is match
Group[0]=href= 'index '
Group[1]= 'index '
Group[2]= '
Group[3]= '
Group[4]=
href=index is match
Group[0]=href=index
Group[1]=index
Group[2]=
Group[3]=
Group[4]=index
href= "index 2 " is match
Group[0]=href= "index 2 "
Group[1]= "index 2 "
Group[2]= "
Group[3]= "
Group[4]=