A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
OCM Java EE 6 Enterprise Architect Exam Guide
this week in the
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
subject: strings and regular expressions.
Reverse the words in a string
Obtaining data from form elements
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