Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: match(s1,s2) function


From   "Lee Chuntao" <[email protected]>
To   <[email protected]>
Subject   st: match(s1,s2) function
Date   Wed, 7 Aug 2002 17:29:30 -0400

Dear All,

    I want to evalute if S1 is a substring of S2, for example, "str" is a sbustring of "substring" . To my great disappointed, the match(s1,s2) only works as the "==" operator. Can anyone help me?

thanks in advance

Chuntao

*
*   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