Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

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

st: find and replace strings in a variable

From   Mauricio Esteban Cuak <>
Subject   st: find and replace strings in a variable
Date   Fri, 3 Aug 2012 09:57:27 -0500

Dear Statalisters,

I have a variable called v1 that has different strings.
One of the possible values for v1 comes with different spellings:
"International: [4]", "International_[2,3]"
They all have "International", however, and no other value has that string.

I'd like to replace all those different spellings with just "International".

Thanks for your time,

*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index