A voir également:
- Class Pattern extration de time
- Finish time lite - Télécharger - Utilitaires
- Quick time - Télécharger - Lecture
- Salat time - Télécharger - Agendas & Calendriers
- Popcorn time pc - Télécharger - TV & Vidéo
- Face time - Guide
3 réponses
KX
Messages postés
16755
Date d'inscription
samedi 31 mai 2008
Statut
Modérateur
Dernière intervention
12 février 2025
3 020
19 juil. 2013 à 20:51
19 juil. 2013 à 20:51
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,