[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [xml] Regular Expression Problem
- From: Ashwin <ashwins huawei com>
- To: veillard redhat com
- Cc: xml gnome org, ranjit huawei com, nageshs huawei com
- Subject: Re: [xml] Regular Expression Problem
- Date: Fri, 22 Feb 2008 13:52:28 +0530
>
>
> Hi,
>
> While evaluating an expression against the following pattern, libxml
> is returning an internal error.
>
> The Pattern is
> -(conf:[a-zA-Z0-9.:_\-]+|conn:[a-zA-Z0-9.:_\-]+)/dialog:[a-zA-Z0-9.:_\
> -]+
>
> The expression is -conn:10600-0-3689-217.198.224.50.5060
>
> While debugging I found that it fails in xmlFARegExecRollBack function
> because of a rollback on an empty stack.... Is this a problem?
> Hum, unfortunately this looks like a different problem, it seems
> to take a lot of cycles and I'm afraid there is something serious going
> on and that can be only studied and fixed by debugging the generated
> automata.
> reducing the expression and the input to provide a minimal automata
> showing the problem is a good first step.
I reduced the input pattern to
(conf:[a-zA-Z0-9.:_\-]+|conn:[a-zA-Z0-9.:_\-]+)
And the given input works for this, but as soon as I add the dialog
expression it fails, also it passes if I reduce the length of the input
expression,
Something like conn:10600-0-3689-217.198 or reduce it even further it gives
a expression match failure but no error....
Regards
Ashwin
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]