On Wed, 18 Dec 2002, Keith Moore wrote:
so you probably could write a regular expression that would recognize
rfc 822 in practice (e.g. just be prepared to handle at most 20
levels of nested parentheses).
Totally off-topic, but people might be interested to know that the next
release of the PCRE regex engine has a recursion feature that enables it
to recognize nested things such as parens. (And other cool stuff - I
have a regex that recognizes palindromes!) It won't be out for some
months because I still have other work to do on it.
--
Philip Hazel University of Cambridge Computing Service,
ph10(_at_)cus(_dot_)cam(_dot_)ac(_dot_)uk Cambridge, England. Phone: +44
1223 334714.