Re: [xml] Regexp Failure



 

 

 

 

 

 

On Fri, Aug 03, 2007 at 08:22:37PM +0530, Ashwin wrote:

>

>    Hi,

>

>    While testing the xmlFARegExec function if I give the following input

>

>    (0|1|2|3|4|5|6|7|8|9)   (0,10)   (The rule to be used for matching the

>    input _expression_)

>

>    _expression_ to be matched 1234567891 (length 10)

>

>    This  is returning a failure, if I reduce the _expression_ by 1 it works

>    fine. Is this because of incorrect usage?

 

>  Hum, no, looks like a bug, strange ...

> paphio:~/XML -> ./testRegexp '(0|1|2|3|4|5|6|7|8|9){0,10}' '1234567891'

> Testing (0|1|2|3|4|5|6|7|8|9){0,10}:

> 1234567891: Fail

> paphio:~/XML -> ./testRegexp '(0|1|2|3|4|5|6|7|8|9){0,10}' '123456789'

> Testing (0|1|2|3|4|5|6|7|8|9){0,10}:

> 123456789: Ok

 

  Could be worth bugzilla'ing that's something I should be able to fix !

 

Hi,

  I think the problem occurs when we have the minimum range as 0, otherwise it works fine. I suppose the problem lies somewhere in the generation of epsilon states when the minimum range is zero (There is a separate bit of code for precisely that condition which I am trying to work out at present:) ) Any pointers....

Thanks!!

 

Regards

Ashwin

 

 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]