From | Fred Wolfe <[email protected]> |
To | [email protected] |
Subject | Re: st: match(s1,s2) function |
Date | Wed, 07 Aug 2002 04:33:32 -0500 |
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?Use the index function and test if index(S2,S1) == 0
© Copyright 1996–2024 StataCorp LLC | Terms of use | Privacy | Contact us | What's new | Site index |