0

How to parse a string data " B. Prakash
98400 51038
B.M. LAL BROS.,
TYRjijbEALERS
3 Whites Road, Royapettoh,thennai r 600 014.
Ph: 2852 4560 Fax: +91-44-2858 8306 Email: bmlalbros@etn.iiet'"

conisder this is my string data and i need to fetch name, address, phone , email seperately is there any logic there...

how to parse ... by theory wise i know use string tokenizer or string[] string.split(" .... ") but this req one character based on that it split...

wat i am suggest is @ means sure ly it is email .. i need to fetch whole word (XXX@YYYY)

+91 means phone need to fetch or split +91XXXXXXX or +91-XXXX

is there any way to do it for tokenizing????????????

2
Contributors
3
Replies
23
Views
4 Years
Discussion Span
Last Post by somjit{}
0

XXX@YYYY

i think what your looking for is regexes.
and i get the feeling that you are yet to use them. in that case , this and this should give you a good start.

Edited by somjit{}

0

ya got some solution in java regex (phoneno,email).. thanks for valuable info :)

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.