[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Regexr Stata

From   Diana Eastman <[email protected]>
To   <[email protected]>
Subject   st: Regexr Stata
Date   Thu, 25 Sep 2008 17:36:02 -0400

Hi all, 

I have a variable called "name" which lists several different airlines.
I need to write some code that will identify a regular expression within
these names and assign them a value in the new variable "group_name"

For instance, for the two names:


I would want the group_name to be only "A.I.F." (the part of the string
they both share). The identifying string does not occur in the same
position across the names. 

Any help is greatly appreciated. 

*   For searches and help try:

© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index