A voir également:
- Class Pattern extration de time
- Popcorn time - Télécharger - TV & Vidéo
- Finish time lite - Télécharger - Utilitaires
- Quick time - Télécharger - Lecture
- Time tools - Télécharger - Comptabilité & Facturation
- Salat time - Télécharger - Agendas & Calendriers
3 réponses
Comme ceci par exemple :
public static void main(String[] args)
{
Pattern p = Pattern.compile("[\\d:]+");
Matcher m = p.matcher("time=00:04:05:06");
while (m.find())
System.out.println(m.group());
}
Super, merci beaucoup KX
Je cherche maintenant à récupérer toute une ligne comme ceci :
Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 720x576 [PAR 16:15 DAR 4:3], 6000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
j'ai fait :
Pattern videoPattern = Pattern.compile("(?<=Video: )[^,]*");
String video = sc.findWithinHorizon(videoPattern, 0);
System.out.println("Caractéristique Video :" +video);
mais je n'ai que Caractéristique Video :mpeg2video,
Merci d'avance,
Je cherche maintenant à récupérer toute une ligne comme ceci :
Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 720x576 [PAR 16:15 DAR 4:3], 6000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
j'ai fait :
Pattern videoPattern = Pattern.compile("(?<=Video: )[^,]*");
String video = sc.findWithinHorizon(videoPattern, 0);
System.out.println("Caractéristique Video :" +video);
mais je n'ai que Caractéristique Video :mpeg2video,
Merci d'avance,