Oct 20

Dans cette exemple, la chaine de caractère commence par <object, contient une url qui commence par http et se termine par "

<object.....blablabla......."http://lesite.com/gs4545?id=8" ....... blablabla.......</object>

Pour récupérer l'url il suffit d'utiliser ce code : 

string theUrl = fullUrl.Substring(fullUrl.IndexOf("http")).Split('"')[0];

 

Tags:

Add comment

  Country flag

biuquote
  • Comment
  • Preview
Loading