RegExp Bug S{n,m}

Tuesday, 11 September 2012 · 3 messages · last reply 24 Oct 2012
AB
Andy Bunce11 Sep 2012 18:18 #

Hi This expression: replace("aaaa bbbbbbbb ddd ",'(.{6,15}) ','$1@') results in [FORX0002] Invalid pattern: 'Illegal quantifier, lower > upper bound: {6,1}'.

Could it be that *S*{n,m} is only accepting single digit n and m?

This causes http://stackoverflow.com/questions/3767452/xquery-word-wrap to wildly overwrap.

Regards /Andy

CG
Christian Grün11 Sep 2012 21:48 #

Noted, thanks [1]; will be fixed soon. Christian

[1] https://github.com/BaseXdb/basex/issues/573

Quoted text · Andy Bunce · 20 lines
> Hi > This expression: > replace("aaaa bbbbbbbb ddd ",'(.{6,15}) ','$1@') > results in > [FORX0002] Invalid pattern: 'Illegal quantifier, lower > upper bound: > {6,1}'. > > Could it be that S{n,m} is only accepting single digit n and m? > > This causes http://stackoverflow.com/questions/3767452/xquery-word-wrap to > wildly overwrap. > > Regards > /Andy > > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >
CG
Christian Grünin reply to Andy Bunce, 11 Sep 2012, 18:1824 Oct 2012 15:14 #

Hi Andy, hi Alex,

the regex bug has eventually been fixed [1,2].

Cheers, Christian

[1] https://github.com/BaseXdb/basex/issues/573 [2] http://files.basex.org/releases/latest/

Quoted text · Andy Bunce · 21 lines
On Tue, Sep 11, 2012 at 6:18 PM, Andy Bunce <bunce.andy at gmail.com> wrote: > Hi > This expression: > replace("aaaa bbbbbbbb ddd ",'(.{6,15}) ','$1@') > results in > [FORX0002] Invalid pattern: 'Illegal quantifier, lower > upper bound: > {6,1}'. > > Could it be that S{n,m} is only accepting single digit n and m? > > This causes http://stackoverflow.com/questions/3767452/xquery-word-wrap to > wildly overwrap. > > Regards > /Andy > > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >

⚡Generated with XQuery