Résolu split texte

Plus d'informations
il y a 4 mois 4 semaines - il y a 4 mois 4 semaines #33695 par ericlm128
Réponse de ericlm128 sur le sujet split texte
$str = "AVBG: sdhgfjhgsdfjgsqdfjqgsfjkgkjg , fgjdhsgfjqhsdgfjq jhdsgfjhqdsghfqkj     GDFGDFG: sdhgfjhgsdfjgsqdfjqgsfjkgkjg fgjdhsgfjqhsdgfjq jhdsgfjhqdsghfqkj"
($str | Select-String -Pattern "([A-Z]+:) ([a-z ,]+)" -CaseSensitive -AllMatches).Matches | ForEach-Object {
    $_.Groups[1].value.Trim()
    $_.Groups[2].value.Trim()
}
Dernière édition: il y a 4 mois 4 semaines par ericlm128.

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 4 mois 4 semaines #33696 par Ludovic B
Réponse de Ludovic B sur le sujet split texte
excellent , merci ,
les regex c vraiment une science

Connexion ou Créer un compte pour participer à la conversation.

Temps de génération de la page : 0.066 secondes
Propulsé par Kunena