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

Split String by $

 
Tusshar Fasate
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am trying to split a string by $ ..but I am not getting desirable output.
here is my code..


output:
Hello
strArr:0 element ->Fri Jul 16 16:01:23 IST 2010 $ sds
Run successfully..


Please help me out on this.
Thanks..
 
Tusshar Fasate
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
one small correction ..

String strArr[]=str.trim().split("$");
instread of this // String strArr[]=str.trim().split("//$");


please help me.
 
Martin Vanyavchich
Ranch Hand
Posts: 241
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wrong slashes try
 
Pramod P Deore
Ranch Hand
Posts: 632
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try this one
>
 
Tusshar Fasate
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot Pramod and Martin for your quick reply...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic