Statalist The Stata Listserver


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

st: regular expression documentation


From   James Muller <[email protected]>
To   [email protected]
Subject   st: regular expression documentation
Date   Wed, 14 Feb 2007 17:57:54 +1100

Hello,

Relating to my previous message, I am wondering whether Stata's
implementation of NFA regular expressions has been documented
publicly. It is said that they are "based on Henry Spenser's NFA
algorithm, and hence are almost identical to POSIX.2 regular
expressions". 

This obviously isn't a statement of equivalence, and has some
implications for writing programs that are supposed to work in the
general case. 

The best thing would be a publicly available formal syntax definition
of Stata's implementation, or a statement of equivalence with a
current implementation that does have a publicly available formal
syntax definition. At minimum, a comparison of the difference between
Stata RE's and POSIX.2 or Henry Spenser's algorithm could do.

Cheers

James
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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