Bonjour tout le monde,
Voilà, j'ai une variable $texte contenant la valeur suivante :
Quelqu'un voit-il comment je pourrais parser cette chaine afin de mettre tous les KB dans un tableau, ici :
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 Approved Patches list computer serveur.domaine.fr . Security Update for Microsoft .NET Framework 2.0 SP2 on Windows Server 2003 and Windows XP for x64-based Systems (KB2804577) Security Update for Windows Server 2003 x64 Edition (KB2850851) Security Update for Microsoft .NET Framework 1.1 SP1 on Windows XP, Server 2003, Vista, and Server 2008 for x64 (KB2833941) Security Update for Microsoft .NET Framework 2.0 SP2 on Windows Server 2003 and Windows XP for x64-based Systems (KB2833940) Security Update for Microsoft .NET Framework 3.0 SP2 on Windows Server 2003 and Windows XP for x64-based Systems (KB2832411) Security Update for Windows Server 2003 x64 Edition (KB2834886) Security Update for Microsoft .NET Framework 3.5 SP1 on Windows XP, Server 2003, Vista, and Server 2008 for x64 (KB2840629) Security Update for Windows Server 2003 x64 Edition (KB2845187) Cumulative Security Update for Internet Explorer 6 for Windows Server 2003 x64 Edition (KB2846071) Security Update for Windows Server 2003 x64 Edition (KB2803821)
$Tableau[0] = "KB2804577"
$Tableau[1] = "KB2850851"
D'avance, merci pour votre aide et bon weekend !
Partager