Bonjour,

pouvez-vous me dire comment faire un multiple regex.
le
Code html : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
<tr>
<td class="phone">Info</td>
<td class="message" rowspan="2">salut<br></td>
</tr>
<tr>
<td class="time">40 seconds</td>
</tr> <tr>
voici mon code :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
 
Dim partern As String = "<td class=""phone"">(.+?)<" & Environment.NewLine & "<td class=""message"" rowspan=""2"">(.+?)<" & Environment.NewLine & "<td class=""time"">(.+?)<"
        Dim array_P As String() = partern.Split(Environment.NewLine)
for i = 0 to array_P.length -1
Dim m1 As MatchCollection = Regex.Matches(source, array_P(array_P.Length - 1), RegexOptions.IgnoreCase)
            For Each m As Match In m1
Dim data = m.Groups(1).Value
            Dim data2 = m.Groups(1).Value
            Dim data3 = m.Groups(1).Value
            Dim lvi As New ListViewItem(data)
            lvi.SubItems.Add(data2)
            lvi.SubItems.Add(data3)
            ListView1.Items.Add(lvi)
 
next
next
pouvez-vous me dire comment lire multiple regex? merci