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 at the end of May, and its replacement, statalist.org is already up and running.


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

Re: AW: st: replace-all can crash do-file


From   Steve Samuels <sjsamuels@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: AW: st: replace-all can crash do-file
Date   Sun, 16 May 2010 16:58:54 -0400

Stata's regular expression parser has many limitations, but this is
not one of them.  The "^" has told the parser  to look only for digits
at the start of a line.

Steve

Steven J Samuels
18 Cantine's Island
Saugerties NY USA
845-246-0774

For example, if you type ^[0-9]+  in the "find what" box, it finds all
expressions of a series of digits in the do file. But it only find
those digit series that are at the very beginning of a line, not those
that are somewhere in the middle of a line, or even those that start
at a line after one space.

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


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