Bookmark and Share

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


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

Re: st: How can I change Stata's regular expression parser to use Perl's parser, so that I can use perl compatible regular expressions (i.e. the same regular expression syntax that I use with Perl)


From   Nick Cox <[email protected]>
To   [email protected]
Subject   Re: st: How can I change Stata's regular expression parser to use Perl's parser, so that I can use perl compatible regular expressions (i.e. the same regular expression syntax that I use with Perl)
Date   Fri, 16 Nov 2012 12:31:02 +0000

You can't do this. Stata's regex code is built-in. You could use Perl
in conjunction with Stata, or write your Stata programs based on
Perl's internal code, but you can't do as you ask.

Nick

On Fri, Nov 16, 2012 at 12:17 PM, Shafique Jamal
<[email protected]> wrote:

> Would anyone know how to change Stata's regular expression parser to
> use Perl's parser, so that I can use perl compatible regular
> expressions (i.e. the same regular expression syntax that I use when
> using Perl)?
>
> Here is what is in the help page for Stata's regular expression
> parser: "Regular expression syntax is based on Henry Spencer's NFA
> algorithm, and this is nearly identical to the POSIX.2 standard."
>
> I find, however, that Perl's regular expression engine is more
> powerful and I find its additional features useful.
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


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