Re: [MarkLogic Dev General] Regular expression bug

2010-05-28 Thread Chris Maloney
On Thu, May 27, 2010 at 10:23 PM, Danny Sokolsky < danny.sokol...@marklogic.com> wrote: > Sorry this one slipped through the cracks for a while...better late than > never. NP! Thanks for looking at it. > We think this is not actually a bug, even though it appears so at first > glance.

Re: [MarkLogic Dev General] Regular expression bug

2010-05-27 Thread Danny Sokolsky
1, 2010 2:54 PM To: General Mark Logic Developer Discussion Subject: Re: [MarkLogic Dev General] Regular expression bug Work-around: I discovered that if I enclosed the first part of the expression in parens, it works. E.g. replace($s, "^(a*?)b+", "x"): "xcc&q

Re: [MarkLogic Dev General] Regular expression bug

2010-05-21 Thread Chris Maloney
Work-around: I discovered that if I enclosed the first part of the expression in parens, it works. E.g. replace($s, "^(a*?)b+", "x"): "xcc" On Fri, May 21, 2010 at 2:56 PM, Maloney, Christopher (NIH/NLM/NCBI) [C] < malon...@ncbi.nlm.nih.gov> wrote: > xquery version "1.0"; > > > > let $s := "aab

[MarkLogic Dev General] Regular expression bug

2010-05-21 Thread Maloney, Christopher (NIH/NLM/NCBI) [C]
xquery version "1.0"; let $s := "aabbcc" return http://www.w3.org/1999/xhtml";> regex-anomaly.xqy regex-anomaly.xqy Demonstrate a MarkLogic regular expression bug. Test string is "{$s}" Works correctly: match