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]

Reply via email to