[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Hanging regex

Subject: Re: [xsl] Hanging regex
From: Ihe Onwuka <ihe.onwuka@xxxxxxxxx>
Date: Sat, 17 Nov 2012 18:04:26 +0000

On Sat, Nov 17, 2012 at 4:35 PM, Liam R E Quin <liam@xxxxxx> wrote:
> On Sat, 2012-11-17 at 12:05 +0000, Ihe Onwuka wrote:
>> First let me dissect the regex
>>          <xsl:analyze-string select="." flags="x"
>>                              regex="(.+?)
>>                                     ((-?\d*\s*)+$)"
> Whenever you have a repeatable part in your regular expression that can
> match the empty string, your regular expression processor takes one more
> step down the staircase to the undocumented Tenth Circle.
Got it. A lesson for the ages.

David's solution set me on the right  track but was too permissive.
This is closer.
	   <xsl:analyze-string select="." flags="x"

Current Thread