recording data between [ and ]

Fredrik Lundh fredrik at pythonware.com
Thu Apr 21 11:16:34 EDT 2005


Diez B. Roggisch wrote:

> Welcome to the wonderful world of programming. Regular expressions are what
> they are because they are modeled after a certain theory - that of finite
> state automata and their correspondence to certain classes of grammars.

(except that Python regexps are not always regular, of course.  and that back-
tracking engines like the ones used in Perl and Python differs in subtle ways
from "real" DFA-based engines, etc.  but as long as you're looking at things
from a proper distance, you're right, of course)

</F>




More information about the Python-list mailing list