Meaningless Drivel is fun!
The moose likes Beginning Java and the fly likes how to parse this string ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "how to parse this string ?" Watch "how to parse this string ?" New topic

how to parse this string ?

Edward Chen
Ranch Hand

Joined: Dec 23, 2003
Posts: 798
for example, I have a line of String, I know the format is

char from 0 - 40 is ID;
char from 41 - 50 is Name;

how to parse this string ?

Monu Tripathi

Joined: Oct 12, 2008
Posts: 1369

take a look at this

[List of FAQs] | [Android FAQ] | [Samuh Varta]
Nishan Patel
Ranch Hand

Joined: Sep 07, 2008
Posts: 689

And if you match some specific patterns then read this link Regex pattern will help you.

Read this Regex Pattern

Thanks, Nishan Patel
SCJP 1.5, SCWCD 1.5, OCPJWSD Java Developer,My Blog
I agree. Here's the link:
subject: how to parse this string ?
It's not a secret anymore!