我不知道为什么这只适用于最后审理,而不是像我所期望的那样。 感谢任何帮助。
www.un.org/Depts/DGACM/index_spanish.htm Input string:
<a href="http://www.scirra.com" target="_blank" rel="nofollow">http://www.scirra.com</a><br /><br />
<a href="http://www.scirra.com" target="_blank" rel="nofollow">http://www.scirra.com</a><br /><hr>
Regex:
SEO scirra links
Dim regEx
Set regEx = New RegExp
BB code urls
With regEx
.Pattern = "<a href=""http://www.scirra.com([^]]+)"" target=""_blank"" rel=""nofollow"">"
.IgnoreCase = True
.Global = True
.MultiLine = True
End With
strMessage = regEx.Replace(strMessage, "<a href=""http://www.scirra.com$1"" target=""_blank"" title=""Some value insert here"">")
set regEx = nothing
<<>Output>:
<a href="http://www.scirra.com" target="_blank" rel="nofollow">http://www.scirra.com</a><br /><br />
<a href="http://www.scirra.com" target="_blank" title="Some value insert here">http://www.scirra.com</a><br /><hr>
Can anyone shed light on why it s only adding the title to the last found instance? (I ve tested with more, always just applies to last one)