Hoe kan ik links/urls uit de html text halen in cel A1. Zie screenshot

ik probeer nu met deze code
VBA code
formule
Alles wat dan tussen dubbele quotes, haalt hij eruit. Alleen soms ziet de a-tag er anders uit. Bijvoorbeeld:
<a href="url_for_output" name="example"></a> waardoor dus ook "example" eruit gehaald word. Zie voorbeeld hieronder

hoe kan ik dit oplossen?

ik probeer nu met deze code
VBA code
Code:
Function LinksInText(ByVal InputText As String) As String
Dim s() As String
Dim i As Integer
s = Split(InputText, Chr(34))
For i = 1 To UBound(s) Step 2
LinksInText = LinksInText & s(i) & ", "
Next i
LinksInText = Left(LinksInText, Len(LinksInText) - 2)
End Function
formule
Code:
=LinksInText(A2)
Alles wat dan tussen dubbele quotes, haalt hij eruit. Alleen soms ziet de a-tag er anders uit. Bijvoorbeeld:
<a href="url_for_output" name="example"></a> waardoor dus ook "example" eruit gehaald word. Zie voorbeeld hieronder

hoe kan ik dit oplossen?