| Author |
Parse * delimited string
|
John Landon
Ranch Hand
Joined: Sep 25, 2008
Posts: 221
|
|
Hi,
What is the best way to parse * delimited string. I mean onto an array of strings or something.
Thanks.
|
 |
Uli Hofstoetter
Ranch Hand
Joined: Nov 24, 2006
Posts: 57
|
|
|
Anything wrong with String.split?
|
SCEA5, Certified ScrumMaster
|
 |
John Landon
Ranch Hand
Joined: Sep 25, 2008
Posts: 221
|
|
|
noh tokenizer is the right thing. Thanks though
|
 |
Campbell Ritchie
Sheriff
Joined: Oct 13, 2005
Posts: 32675
|
|
|
No, Tokenizer is legacy code. String#split is correct. Remember the * is a metacharacter and needs to be escaped.
|
 |
 |
|
|
subject: Parse * delimited string
|
|
|