Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: st: Compound double quote
From
Nick Cox <[email protected]>
To
[email protected]
Subject
Re: st: Compound double quote
Date
Mon, 20 Aug 2012 16:56:50 +0100
The first token of
"AMC Concord", 2, 4
even when parsing on commas is reported as
AMC Concord
as Stata's tendency is to strip " " as delimiters at each level of
parsing. To insist that " " are included as part of the token, I think
you need to start with
local line `" `""AMC Concord""', 2, 4 "'
tokenize `"`line'"', parse(",")
di `"`1'"'
Appropriate thanks would to be stop misspelling "Thanks" !
Nick
On Mon, Aug 20, 2012 at 4:34 PM, tashi lama <[email protected]> wrote:
>
> Could someone help me with the following
>
> local line "AMC Concord", 2, 4
> tokenize `"`line'"', parse(",")
> di `"`1'"'
> AMC Concord (I was hoping to get "AMC Concord" with double quotation). Any idea?
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/