• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

StringTokenizer

 
kevin schmidt
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey there, I'm working with strings and I need to tokenize the inputed string. I then need to replace a token with some other word and than return the full string back. Does anyone have any suggestions.
Kevin
 
Lewin Chan
Ranch Hand
Posts: 214
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you tried something like

Of course, I'm not sure whether that code works or not
 
Steve Deadsea
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wrote a replace function that you could use. Its in my StringHelper class:
http://ostermiller.org/utils/StringHelper.html
[ February 06, 2002: Message edited by: Steve Deadsea ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic