I would suggest you look into StringTokenizer - it has methods for parsing and 
splitting strings like yours.
A quick search should bring up lots of examples.

Good luck
Evans
http://javawug.org


> Date: Fri, 24 Sep 2010 10:20:19 -0700
> Subject: [java ee programming] Parse data
> From: paulito.sant...@gmail.com
> To: java-ee-j2ee-programming-with-passion@googlegroups.com
> 
> Hi all,
> i'am newbie in JAVA and i would liked your point of views/opinion for
> the following situation :
> 
> i have a file with some lines that presents this format of
> information :
> 
> ....
> Anne Gomez ; "5th Avenue ;";"925 NY  " ; 1978/10/11
> ...
> 
> the ";" is the separator of fields and i know the folling :
> 
> 
> 1ªfield = Anne Gomez
> 2ªfield = 5th Avenue ;";"925 NY
> 3ªfield = 1978/10/11
> 
> 
> The 2º field presents as value one or several semin-colon(";") and one
> or several single quote. Do you think there is possbile with class to
> extract the fields as i describe previous ?
> 
> Regards,
> Paulito Santana
> 
> -- 
> You received this message because you are subscribed to the Google
> Groups "Java EE (J2EE) Programming with Passion!" group.
> To post to this group, send email to
> java-ee-j2ee-programming-with-passion@googlegroups.com
> To unsubscribe from this group, send email to
> java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en
                                          

-- 
You received this message because you are subscribed to the Google
Groups "Java EE (J2EE) Programming with Passion!" group.
To post to this group, send email to
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en

Reply via email to