[Bug 29253] [XQ3TS] fn-matches-50

https://www.w3.org/Bugs/Public/show_bug.cgi?id=29253

--- Comment #4 from Tim Mills <tim@cbcl.co.uk> ---
As a bit of background, we were formerly passing these tests due to a bug in
our regex implementation. 

e.g.  (\w)?(abc)\1b  matching against "abcab"

It first attempted to match (\w)? to 'a', setting \1 = 'a', but then failed to
match 'abc' to 'bca'.  Then it backtracked, but forgot to clear the capture
group.

So it matched

(\w)? -> matches empty string, but reported \1 as 'a'
'abc' -> matches 'abc'
\1 -> matches the incorrect capture of 'a'.
'b' -> matches 'b'

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Wednesday, 4 November 2015 11:14:06 UTC