Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Beginning Java
Search Coderanch
Advance search
Google search
Register / Login
Forums
Register
Login
Java
»
Beginning Java
Parse * delimited string
John Landon
,
Ranch Hand
Mar 24, 2009 15:20:45
(0 cow)
(0 skulls)
+Pie
Number of slices to send:
Send
Hi,
What is the best way to parse * delimited
string
. I mean onto an array of strings or something.
Thanks.
Uli Hofstoetter
,
Ranch Hand
Mar 24, 2009 15:42:03
(0 cow)
(0 skulls)
+Pie
Number of slices to send:
Send
Anything wrong with
String.split
?
John Landon
,
Ranch Hand
Mar 24, 2009 15:44:04
(0 cow)
(0 skulls)
+Pie
Number of slices to send:
Send
noh tokenizer is the right thing. Thanks though
Campbell Ritchie
,
Marshal
staff
Mar 24, 2009 16:19:15
(0 cow)
(0 skulls)
+Pie
Number of slices to send:
Send
No, Tokenizer is legacy code. String#split is correct. Remember the * is a metacharacter and needs to be escaped.
Post by:
autobot
I'm thinking about a new battle cry. Maybe "Not in the face! Not in the face!" Any thoughts tiny ad?
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
reply
This thread has been viewed 1298 times.
Similar Threads
Suggestions on fastest way to parse a String?
parsing comma delimited string
passing array from processAction to jsp
Returning array from applet to JavaScript
Split a String
More...
All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 13:33:53
.