Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Need help with regular expression


From   Michael Stewart <michaelstewartresearch@gmail.com>
To   statalist <statalist@hsphsun2.harvard.edu>
Subject   st: Need help with regular expression
Date   Sun, 17 Feb 2013 02:15:06 -0500

HI ,

I am trying to use regexm command (regexm(var,"us"))to see if the
values of variable have a particular string "us" like in  "us thyroid"
.Unfortunately , it is picking up "us" from other string values like
"venous".If there a way to formulate command so that it can pick up
only values  where "us" is a separate word and not part of word like
venous.

Thank you ,
Yours Sincerely,
Mike.
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index