Subject: Parse integer out of string 2005-07-07 - By Jagannath Nori
Back Hi,
Assuming you are trying to pull out integer part from this string.
int i= Integer.parseInt("BDAT 30 LAST".substring(5, 7));
(assuming there is one space between T and 3).
Hope it helps.
Thanks&Regards Jagannath
On 7/8/05, Taco Fleur <taco@(protected)> wrote: > > > How do I parse an integer out of a string, for example: BDAT 30 LAST > > > > I did not find any regex support under the String class except for matching. > > > > __ ____ ____ ____ ____ ____ ____ > > Taco Fleur - E-commerce Development Manager > > Shelco Searches & Services > > An Authorised ASIC Information Broker > > www.shelco.com.au > > Ph: + 61 7 3236 2605 > > ==========================================================================> To unsubscribe, send email to listserv@(protected) and include in the body > of the message "signoff J2EE-INTEREST". For general help, send email to > listserv@(protected) and include in the body of the message "help". > >
==========================================================================To unsubscribe, send email to listserv@(protected) and include in the body of the message "signoff J2EE-INTEREST". For general help, send email to listserv@(protected) and include in the body of the message "help".
|
|