Re: [xml] Regexp Failure

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


   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 !


Red Hat Virtualization group
Daniel Veillard      | virtualization library
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

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