Bonjour,
étant bof bof en regex et malgrès les sites fait pour ca, je trouve pas mon bonheur. Actuellement jai le code
richTextBox2 étant une longue string, elle contient ceux que je cherche de cette facon par exemple :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5 Regex monRegex = new Regex("(^http://\S+.free.fr$)"); string[] amis = monRegex.Split(richTextBox2.Text); for (int i = 0; i < amis.Length; i++) richTextBox4.Text += amis[i] + "\r\n";
Mon but est ici de retrouver dans amis[0] = toto et amis[1] = mamieblopblophttp://toto.free.frblipblupblophttp://mamie.free.frdeveloppez.com
Mais déjà mon regex parait éroné donc ca ne marche pas :s
Pouvez-vous m'aider?
Partager