IDEAS home Printed from https://ideas.repec.org/p/boc/wsug07/5.html
   My bibliography  Save this paper

Using Regular Expressions for Data Management in Stata

Author

Listed:
  • Rose Medeiros

    (Statistical Consulting Group, ATS, University of California Los Angeles)

Abstract

Regular expressions make a number of data management operations involving string variables much easier. They do this by allowing the user to search for (and copy or replace) complex patterns of characters within a string. Examples of when regular expression are useful include extracting zip codes from addresses, reformatting dates if they were entered in an inconsistent manner, and removing excess spaces from string expressions. This presentation will give the user a basic introduction to the use of regular expressions, and the Stata functions related to regular expressions, as well as examples of applications where regular expressions can be used to streamline data management.

Suggested Citation

  • Rose Medeiros, 2007. "Using Regular Expressions for Data Management in Stata," West Coast Stata Users' Group Meetings 2007 5, Stata Users Group.
  • Handle: RePEc:boc:wsug07:5
    as

    Download full text from publisher

    File URL: http://repec.org/wcsug2007/medeiros_reg_ex.pdf
    File Function: presentation slides
    Download Restriction: no
    ---><---

    More about this item

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:boc:wsug07:5. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Christopher F Baum (email available below). General contact details of provider: https://edirc.repec.org/data/stataea.html .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.