Using Regular Expressions for Data Management in Stata
Rose Medeiros ()
Additional contact information
Rose Medeiros: Statistical Consulting Group, ATS, University of California Los Angeles
West Coast Stata Users' Group Meetings 2007 from Stata Users Group
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.
Date: 2007-10-31
References: Add references at CitEc
Citations:
Downloads: (external link)
http://repec.org/wcsug2007/medeiros_reg_ex.pdf presentation slides (application/pdf)
Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.
Export reference: BibTeX
RIS (EndNote, ProCite, RefMan)
HTML/Text
Persistent link: https://EconPapers.repec.org/RePEc:boc:wsug07:5
Access Statistics for this paper
More papers in West Coast Stata Users' Group Meetings 2007 from Stata Users Group Contact information at EDIRC.
Bibliographic data for series maintained by Christopher F Baum ().