If the Xerces team is unable to help you with this or does not support their
regular expressions implementation, Regex++, of the Boost library
[url:http://www.boost.org], is an excellent choice that I am using
currently.

-Corey Lubin


----- Original Message -----
From: "Bojan Resnik" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, December 27, 2001 4:35 AM
Subject: Problem with regular expressions


>   Greetings, everyone.
>
>   I see that the regular expression classes are not documented, but I
> still need to use them. However, I found that their behaviour is
> somewhat strange. Consider the program fragment below:
>
> #include <util/PlatformUtils.hpp>
> #include <util/regx/RegularExpression.hpp>
> ...
> void SomeFunction()
> {
>     RegularExpression regexp(".*i.*", "X");
>     regexp.matches("String");
> }
>
>   If the option string doesn't contain "X", that all the comparisons I
> tried failed miserably, even those that were not supposed to fail. If
> "X" is specified, then most of the comparisons are executed correctly,
> but the above code enters an infinite loop. Actually, if the pattern
> begins with ".*" and "X" is specified as an option, the code will
> enter infinite loop.
>
>   Is there a solution to this problem? I need regular expressions for
> the project I am working on.
>
>   Best regards,
>     Bojan
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to