[XSL-LIST Mailing List Archive Home]
[Reply To This Message]
Re: check the type of the $pattern argument to a regul
Subject: Re: check the type of the $pattern argument to a regular expression?|
From: "bryan rasmussen" <rasmussen.bryan@xxxxxxxxx>
Date: Sun, 15 Apr 2007 12:31:51 +0200
ah, hadn't thought of that, no doubt due to my poor command of
regular expressions, so it should be implemented as probably a
recursive function that checks the various steps of the regex.
On 4/15/07, Michael Kay <mike@xxxxxxxxxxxx> wrote:
I *think* David's point is that the problem is mathematically insoluble: the
grammar for regular expressions is recursive, and regular expressions are
not powerful enough to process a language whose grammar is recursive.
Sorry I suggested it!
> -----Original Message-----
> From: bryan rasmussen [mailto:rasmussen.bryan@xxxxxxxxx]
> Sent: 15 April 2007 09:45
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re: check the type of the $pattern argument to
> a regular expression?
> I thought that was the most likely solution, although it
> might be that one would want to break the task into a
> template and a number of regular expressions, anyway I was
> wondering if anyone knew of such a solution already?
> Bryan Rasmussen
> On 4/15/07, David Carlisle <davidc@xxxxxxxxx> wrote:
> > > Short of writing a regular expression that only matches valid
> > > regular expressions (which sounds like an interesting
> exercise for
> > > the reader),
> > along with other interesting exercises like trisecting angles and
> > squaring the circle, presumably:-)
> > David
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format