File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Java in General
strings and regular expressions.
Joined: Mar 16, 2004
Nov 23, 2011 15:20:57
I am given the the following
that I need to process.
frame= 71 fps= 0 q=32.0 size= 12kB time=1.93 bitrate= 50.2kbits/s dup=0 drop=69
I need to grab the text after "time=" In perl I remember being able to easily grab the word or words after the matched
Does Java support such a feature?
If I split the stirng, "time=XXXX" does not consistantly appear in the same position in the string array. There has to be some simple way extract the word that follows "time="
CIAO Peter M. Cooke
Joined: Oct 14, 2005
Nov 23, 2011 15:23:38
Yes, Java supports regular expressions.
Joined: Jan 03, 2004
Nov 23, 2011 16:24:47
Don't get me started about those stupid
subject: strings and regular expressions.
Obtaining data from form elements
Reverse the words in a string
Making a binary to decimal converter
Garbage Collection question
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014