We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › tokens(delimiters) available for splitTokens()
Page Index Toggle Pages: 1
tokens(delimiters) available for splitTokens() (Read 482 times)
tokens(delimiters) available for splitTokens()
Apr 28th, 2009, 4:34pm
 
Is there a full list of tokens(also known as delimiters) that can be used with splitToken() - found here (http://processing.org/reference/splitTokens_.html)

for example I want a token to be the number 8217, and to exclude periods, but not ellipses... thanks for any help
Re: tokens(delimiters) available for splitTokens()
Reply #1 - Apr 29th, 2009, 8:17am
 
The list is unlimited as you can provide your own delimiters...

Quote:
I want a token to be the number 8217

I suppose you mean character whose Unicode value is 8217
=> "\u8217"
Unless that's the decimal value, in this case it will be "\u2019"

Quote:
to exclude periods, but not ellipses

Ellipses like … or like ...? (one char, \u2026, vs. three)
In the second case, you might want to use Java's String's split, which accept regular expression as delimiter.
Page Index Toggle Pages: 1