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

Re: st: question regarding tokenize

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

See -tknz- on SSC.


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:

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