Thanks, Nick.  Your original solution worked perfectly.  And I think you're
right, -end- and -split- are useful, but in other contexts.
 
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Nick Cox
Sent: Wednesday, October 05, 2005 4:58 AM
To: [email protected]
Subject: RE: st: String help
This won't get one far in solving this problem. 
Nor will -split-. That is no criticism of either, as each was designed for
different problems. 
The problem needs lower-level functions. 
Nick
[email protected] 
[email protected]
 
> Try also the egen-function "ends". Using that you can split a string 
> into parts, specifying the partitioner.
                   
>              "Terra Curtis"                                   
> 
> I am dealing with a string variable called 'string' like the example 
> below (this is copied from the data browser):
*
*   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/
*
*   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/