• Post Reply Bookmark Topic Watch Topic
  • New Topic

String manipulation. Help needed. ..!!  RSS feed

 
Pradyumna Joshi
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I wanted to format string as follows:

Input string:
staffnum|role|name|lastname

12345|role1|abc|pqr
12345|role2|abc|pqr


Required Output String:

12345|role1,role2|abc|pqr

i.e. I wanted to separate role field by comma for same staff number and wanted to remove second row of same staff number.

please help.
 
Mohamed Sanaulla
Bartender
Posts: 3185
34
Google App Engine Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you tried some code so that we can help you out with it?

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!