Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Regarding Tabular Data

 
praveen valaboju
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am Having a Table data in this format

Name Date Invoice
Mark 11-11-2007 58986985

Amount WorkOrderNumber
50000 589696

can any help me regarding extracting the data for Name,Date,Invoice,Amount,WorkOrderNumber

Output Should be

Name Mark

Date 11-11-2007

Invoice 58986985

Amount 50000

WorkOrderNumber 589696

I have tried in this manner but unable to succeed

Matcher m = Pattern.compile("Name(\\s*\\W*\\w*\\W*.
w*.)|Date
W+([0-9-]+)|Invoice (\\W*(\\d+))|Amount(\\W*(\\d+))|WorkOrderNumber([\\d]*,*)").matcher(line1);

Any suggestions are welcome.

Regards

V.Praveen :roll:
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic