Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: question regarding tokenize


From   n j cox <[email protected]>
To   [email protected]
Subject   Re: st: question regarding tokenize
Date   Wed, 16 Apr 2008 00:24:40 +0100

See -tknz- on SSC.

Nick
[email protected]

JP Azevedo

I would like to know if there is any way to find out in how many tokens a
particular string was devided using the tokenize command. And if it is
possible to ommit the parse character.

local str "A strange++strin^+Mexico+Chile"
tokenize `str', parse("+")
di "1=|`1'|, 2=|`2'|, 3=|`3'|, 4=|`4'|, 5=|`5'|"

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index