|
Subject: Re: [xsl] comparing sequences that contain more than one of the same item From: "Andrew Welch" <andrew.j.welch@xxxxxxxxx> Date: Fri, 22 Feb 2008 15:51:35 +0000 |
On 22/02/2008, Ronan Klyne <ronan.klyne@xxxxxxxxxxx> wrote:
> > matches('hello', 'a?e?f?m?r?r?')"
> >
> > returns true, which suggests the regex needs work... but I don't know
> > regex's well enough to correct it.
> >
> >
>
>
> Add a caret and a dollar to mark the beginning and end of the string,
> otherwise it's allowed to match a zero length substring
>
> matches('ehllo', '^a?e?f?m?r?r?$')
aha - well done Ronan!
I've now implemented Mike's solution and it performs about the same as
the recursive function approach (ignoring the pre-process step of
sorted the words in the word list)...
cheers
--
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] comparing sequences that , Ronan Klyne | Thread | Re: [xsl] comparing sequences that , Florent Georges |
| Re: [xsl] comparing sequences that , Florent Georges | Date | Re: [xsl] Complex recursion in XSLT, Manfred Staudinger |
| Month |