Réponse acceptée !
en fait je ne fait pas du tout de CSharp, et je te remercie bien de m'avoir éclairé, j'ai tout de meme pu adapter pour VB, voici ma fonction qui sait peut être utile pour d'autres.
Function Recupsript(html,conf)
' si conf = 1, temp recupère toutes les balises script sinon récupère le reste
Dim Regex
Dim Matche
Dim Matches
Dim RetStr
Set Regex = New RegExp
Regex.Pattern = "<script[^>]*>(.|\n)*?</script[^>]*>(\r\n)?"
Regex.IgnoreCase = True
Regex.Global = True
If (Regex.Test(html) = True) Then
If conf="1" then
Set Matches = Regex.Execute(html)
For Each Matche In Matches
temp = temp & Matche.Value
Next
Else
temp = Regex.Replace(html,"")
End if
Else
temp = ""
End If
Recupsript = temp
End Function
A bientôt !
SDA